code: function RPCError(msg, code) {
    Error.call(this);
  
    this.type = 'RPCError';
    this.message = String(msg);
    this.code = code >>> 0;
  
    if (Error.captureStackTrace)
      Error.captureStackTrace(this, RPCError);
  }
docs: /*
  Helpers