Skip to main content

ErrorCodes

@midnight-ntwrk/dapp-connector-api v3.0.0


@midnight-ntwrk/dapp-connector-api / ErrorCodes

Variable: ErrorCodes

const ErrorCodes: object

The following error codes can be thrown by the dapp connector.

Type declaration​

InternalError​

readonly InternalError: "InternalError" = 'InternalError'

The dapp connector wasn't able to process the request

InvalidRequest​

readonly InvalidRequest: "InvalidRequest" = 'InvalidRequest'

Can be thrown in various circumstances, e.g. one being a malformed transaction

Rejected​

readonly Rejected: "Rejected" = 'Rejected'

The user rejected the request