Class: AuthSchemeError
@divine/uri.AuthSchemeError
An IOError subclass thrown by the AuthScheme class.
Hierarchy
↳
AuthSchemeError
Constructors
constructor
• new AuthSchemeError(message
, challenge?
, cause?
, data?
)
Constructs a new AuthSchemeError exception.
Parameters
Name | Type | Description |
---|---|---|
message | string | The error message. |
challenge? | WWWAuthenticate | An optional challenge in case the client should retry the operation. |
cause? | Error | If this error was caused by another exception, pass it here to link it. |
data? | object & Metadata | Custom, per-exception information associated with the exception. |
Overrides
Defined in
Properties
cause
• Optional
cause: Error
The Error that caused this exception to be thrown.
Inherited from
Defined in
challenge
• Optional
challenge: WWWAuthenticate
An optional challenge in case the client should retry the operation.
Defined in
data
• Optional
data: object
& Metadata
Custom, per-exception information associated with the exception.
Inherited from
Defined in
Methods
toString
▸ toString(): string
Converts this IOError to a string.
Returns
string