Skip to main content

CancelError

@authgear/web / CancelError

Class: CancelError

CancelError means cancel. If you catch an error and it is instanceof CancelError, then the operation was cancelled.

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new CancelError(message?)

Parameters

NameType
message?string

Inherited from

AuthgearError.constructor

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1034

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.

Inherited from

AuthgearError.underlyingError

Defined in

packages/authgear-web/index.d.ts:14