All files / json-pack/src/rpc errors.ts

75% Statements 3/4
25% Branches 1/4
50% Functions 1/2
75% Lines 3/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 1234x   3x       34x          
export class RpcDecodingError extends Error {
  constructor(message?: string) {
    super(message ? 'RPC_DECODING: ' + message : 'RPC_DECODING');
  }
}
 
export class RpcEncodingError extends Error {
  constructor(message?: string) {
    super(message ? 'RPC_ENCODING: ' + message : 'RPC_ENCODING');
  }
}