Function assertIsJsonRpcFailure
- assertIsJsonRpcFailure(value: unknown, ErrorWrapper?: AssertionErrorConstructor): asserts value is {
error: JsonRpcError;
id: null | string | number;
jsonrpc: "2.0";
}
-
Returns asserts value is {
error: JsonRpcError;
id: null | string | number;
jsonrpc: "2.0";
}
Assert that the given value is a valid JsonRpcFailure object.
Throws
If the given value is not a valid JsonRpcFailure object.