InvalidProtocolSchemeError
Midnight.js API Reference v3.1.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / InvalidProtocolSchemeError
Class: InvalidProtocolSchemeError
An error describing an invalid protocol scheme.
Extends
Error
Constructors
Constructor
new InvalidProtocolSchemeError(
invalidScheme,allowableSchemes):InvalidProtocolSchemeError
Parameters
invalidScheme
string
The invalid scheme.
allowableSchemes
string[]
The valid schemes that are allowed.
Returns
InvalidProtocolSchemeError
Overrides
Error.constructor
Properties
allowableSchemes
readonlyallowableSchemes:string[]
The valid schemes that are allowed.
invalidScheme
readonlyinvalidScheme:string
The invalid scheme.