Skip to main content

AuthgearError

@authgear/capacitor


@authgear/capacitor / AuthgearError

Class: AuthgearError

AuthgearError is the root class of error produced by the SDK.

Extends

  • Error

Extended by

Constructors

Constructor

new AuthgearError(message?): AuthgearError

Parameters

message?

string

Returns

AuthgearError

Inherited from

Error.constructor

Properties

underlyingError?

optional underlyingError: unknown

underlyingError is the underlying error. The type is unknown because it is possible to throw anything in JavaScript. Use ordinary approaches, such as instanceof operator, to identify what it is.