Class: APIError
Defined in: particiapp-web-client.js:254
The APIError class represents an error due to an unknown API error.
Extends
Extended by
Constructors
new APIError()
new APIError(status, problemDetails): APIError
Defined in: particiapp-web-client.js:261
The constructor returns a newly created APIError object.
Parameters
status
number
The HTTP status code returned by the server.
problemDetails
The problem details JSON object returned by the server.
Returns
Overrides
Properties
cause?
optional cause: unknown;
Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
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.
message
message: string;
Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
name
name: string;
Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
stack?
optional stack: string;
Defined in: ../../../../root/.npm/_npx/4661334f0781fdbe/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
status
status: number;
Defined in: particiapp-web-client.js:246
Inherited from
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.