APIError
@midnight-ntwrk/dapp-connector-api v3.0.0
@midnight-ntwrk/dapp-connector-api / APIError
Class: APIError
Whenever there's a function called that returns a promise, an error with the shape can be thrown.
Extendsβ
CustomError
Constructorsβ
new APIError()β
new APIError(
code,reason):APIError
Parametersβ
codeβ
reasonβ
string
Returnsβ
Overridesβ
CustomError.constructor
Propertiesβ
codeβ
code:
ErrorCode
The code of the error that's thrown
reasonβ
reason:
string
The reason the error is thrown