BrowserConfigurationAuthError class

Browser library error class thrown by the MSAL.js library for SPAs

Extends

AuthError

Constructors

BrowserConfigurationAuthError(string, string)

Inherited Properties

correlationId

CorrelationId associated with the error

errorCode

Short string denoting error

errorMessage

Detailed description of error

message
name
stack
subError

Describes the subclass of an error

Methods

createEntropyNotProvided()

Creates an error thrown when a crypto interface that requires entropy is initialized without entropy

createInMemoryRedirectUnavailableError()
createPostLogoutRedirectUriEmptyError()

Creates an error thrown when the post-logout redirect uri is empty (not set by caller)

createRedirectCallbacksNotSetError()

Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect().

createRedirectUriEmptyError()

Creates an error thrown when the redirect uri is empty (not set by caller)

createStorageNotSupportedError(string)

Creates error thrown when given storage location is not supported.

createStubPcaInstanceCalledError()

Creates error thrown when the stub instance of PublicClientApplication is called.

Inherited Methods

createPostRequestFailed(string)

Creates an error for post request failures.

createUnexpectedError(string)

Creates an error that is thrown when something unexpected happens in the library.

setCorrelationId(string)

Constructor Details

BrowserConfigurationAuthError(string, string)

new BrowserConfigurationAuthError(errorCode: string, errorMessage?: string)

Parameters

errorCode

string

errorMessage

string

Inherited Property Details

correlationId

CorrelationId associated with the error

correlationId: string

Property Value

string

Inherited From AuthError.correlationId

errorCode

Short string denoting error

errorCode: string

Property Value

string

Inherited From AuthError.errorCode

errorMessage

Detailed description of error

errorMessage: string

Property Value

string

Inherited From AuthError.errorMessage

message

message: string

Property Value

string

Inherited From Error.message

name

name: string

Property Value

string

Inherited From Error.name

stack

stack?: string

Property Value

string

Inherited From Error.stack

subError

Describes the subclass of an error

subError: string

Property Value

string

Inherited From AuthError.subError

Method Details

createEntropyNotProvided()

Creates an error thrown when a crypto interface that requires entropy is initialized without entropy

static function createEntropyNotProvided(): BrowserConfigurationAuthError

Returns

createInMemoryRedirectUnavailableError()

static function createInMemoryRedirectUnavailableError(): BrowserConfigurationAuthError

Returns

createPostLogoutRedirectUriEmptyError()

Creates an error thrown when the post-logout redirect uri is empty (not set by caller)

static function createPostLogoutRedirectUriEmptyError(): BrowserConfigurationAuthError

Returns

createRedirectCallbacksNotSetError()

Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect().

static function createRedirectCallbacksNotSetError(): BrowserConfigurationAuthError

Returns

createRedirectUriEmptyError()

Creates an error thrown when the redirect uri is empty (not set by caller)

static function createRedirectUriEmptyError(): BrowserConfigurationAuthError

Returns

createStorageNotSupportedError(string)

Creates error thrown when given storage location is not supported.

static function createStorageNotSupportedError(givenStorageLocation: string): BrowserConfigurationAuthError

Parameters

givenStorageLocation

string

Returns

createStubPcaInstanceCalledError()

Creates error thrown when the stub instance of PublicClientApplication is called.

static function createStubPcaInstanceCalledError(): BrowserConfigurationAuthError

Returns

Inherited Method Details

createPostRequestFailed(string)

Creates an error for post request failures.

static function createPostRequestFailed(errDesc: string): AuthError

Parameters

errDesc

string

Returns

AuthError

Inherited From AuthError.createPostRequestFailed

createUnexpectedError(string)

Creates an error that is thrown when something unexpected happens in the library.

static function createUnexpectedError(errDesc: string): AuthError

Parameters

errDesc

string

Returns

AuthError

Inherited From AuthError.createUnexpectedError

setCorrelationId(string)

function setCorrelationId(correlationId: string)

Parameters

correlationId

string

Inherited From AuthError.setCorrelationId