Skip to content

Latest commit

 

History

History
98 lines (53 loc) · 2.85 KB

Accounts_System_.AccountError.md

File metadata and controls

98 lines (53 loc) · 2.85 KB

Powership / Modules / Accounts System. / AccountError

Class: AccountError

Accounts System..AccountError

Hierarchy

  • Error

    AccountError

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AccountError(code, details?)

Parameters

Name Type Default value
code "Unauthorized" | "InvalidRequest" | "InvalidLocationInfoUserAgent" | "InvalidLocationInfoIP" | "InvalidEncodedSession" | "UserNotFound" | "InvalidSession" | "InvalidToken" | "TokenVerificationFailed" | "SessionNotFound" | "InvalidTokens" | "ImpersonatedUserNotFound" | "ServiceNotFound" | "UserDeactivated" | "AuthenticationFailed" undefined
details any 'ACCOUNT_ERROR'

Overrides

Error.constructor

Defined in

packages/accounts/src/utils/AccountError.ts:9

Properties

__isAccountError

__isAccountError: boolean = true

Defined in

packages/accounts/src/utils/AccountError.ts:4


__kind

__kind: string = 'AccountError'

Defined in

packages/accounts/src/utils/AccountError.ts:5


code

code: "Unauthorized" | "InvalidRequest" | "InvalidLocationInfoUserAgent" | "InvalidLocationInfoIP" | "InvalidEncodedSession" | "UserNotFound" | "InvalidSession" | "InvalidToken" | "TokenVerificationFailed" | "SessionNotFound" | "InvalidTokens" | "ImpersonatedUserNotFound" | "ServiceNotFound" | "UserDeactivated" | "AuthenticationFailed"

Defined in

packages/accounts/src/utils/AccountError.ts:7

Methods

is

Static is(input): input is AccountError

Parameters

Name Type
input unknown

Returns

input is AccountError

Defined in

packages/accounts/src/utils/AccountError.ts:16