Skip to content

Class: AuthenticationRequiredError

Defined in: particiapp-web-client.js:281

The AuthenticationRequiredError class represents an error caused by an unauthenticated API request.

Extends

Constructors

new AuthenticationRequiredError()

new AuthenticationRequiredError(status, problemDetails): AuthenticationRequiredError

Defined in: particiapp-web-client.js:289

The constructor returns a newly created AuthenticationRequiredError object.

Parameters

status

number

The HTTP status code returned by the server.

problemDetails

APIProblemDetails

The problem details JSON object returned by the server.

Returns

AuthenticationRequiredError

Overrides

APIError.constructor

Properties

cause?

optional cause: unknown;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from

APIError.cause


detail

detail: string;

Defined in: particiapp-web-client.js:272

The detail property contains a human-readable explanation specific to this occurrence of the problem returned by the server.

Inherited from

APIError.detail


message

message: string;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from

APIError.message


name

name: string;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

APIError.name


stack?

optional stack: string;

Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from

APIError.stack


status

status: number;

Defined in: particiapp-web-client.js:246

Inherited from

APIError.status


type

type: string;

Defined in: particiapp-web-client.js:267

The type property contains a URI reference that identifies the problem type returned by the server.

Inherited from

APIError.type