InvalidResponseError <ErrorType, RequestType>
Hierarchy
- ResponseError<ErrorType, RequestType>
- InvalidResponseError
Index
Constructors
Properties
Accessors
Methods
Constructors
publicconstructor
Type parameters
- ErrorType = unknown
- RequestType = unknown
Parameters
result: JsonRpcResponse<unknown, ErrorType>
optionalrequest: JsonRpcPayload<RequestType>
Returns InvalidResponseError<ErrorType, RequestType>
Properties
publiccause
publiccode
publicoptionaldata
publicreadonlyname
publicoptionalrequest
publicstack
publicoptionalstatusCode
Accessors
publicinnerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
Methods
publictoJSON
Returns { cause: undefined | Error; code: number; data: undefined | ErrorType | ErrorType[]; innerError: undefined | Error; message: string; name: string; request: undefined | JsonRpcPayload<RequestType>; statusCode: undefined | number }
cause: undefined | Error
code: number
data: undefined | ErrorType | ErrorType[]
innerError: undefined | Error
message: string
name: string
request: undefined | JsonRpcPayload<RequestType>
statusCode: undefined | number
publicstaticconvertToString
Parameters
value: unknown
unquotValue: boolean = false
Returns string
Base class for Web3 errors.