Skip to main content

Class: AuthSchemeError

@divine/uri.AuthSchemeError

An IOError subclass thrown by the AuthScheme class.

Hierarchy

Constructors

constructor

new AuthSchemeError(message, challenge?, cause?, data?)

Constructs a new AuthSchemeError exception.

Parameters

NameTypeDescription
messagestringThe error message.
challenge?WWWAuthenticateAn optional challenge in case the client should retry the operation.
cause?ErrorIf this error was caused by another exception, pass it here to link it.
data?object & MetadataCustom, per-exception information associated with the exception.

Overrides

IOError.constructor

Defined in

uri/src/auth-schemes.ts:40

Properties

cause

Optional cause: Error

The Error that caused this exception to be thrown.

Inherited from

IOError.cause

Defined in

uri/src/uri.ts:87


challenge

Optional challenge: WWWAuthenticate

An optional challenge in case the client should retry the operation.

Defined in

uri/src/auth-schemes.ts:40


data

Optional data: object & Metadata

Custom, per-exception information associated with the exception.

Inherited from

IOError.data

Defined in

uri/src/uri.ts:96

Methods

toString

toString(): string

Converts this IOError to a string.

Returns

string

Inherited from

IOError.toString

Defined in

uri/src/uri.ts:102