Skip to main content

Enumeration: ErrorType

Defined in: src/errors.ts:4

Classification of SDK errors by origin.

Enumeration Members​

SERVER_SIDE_ERROR​

SERVER_SIDE_ERROR: "AISEC_SERVER_SIDE_ERROR";

Defined in: src/errors.ts:6

5xx response from the AIRS API.


CLIENT_SIDE_ERROR​

CLIENT_SIDE_ERROR: "AISEC_CLIENT_SIDE_ERROR";

Defined in: src/errors.ts:8

4xx response or network failure.


USER_REQUEST_PAYLOAD_ERROR​

USER_REQUEST_PAYLOAD_ERROR: "AISEC_USER_REQUEST_PAYLOAD_ERROR";

Defined in: src/errors.ts:10

Invalid user-supplied input (bad UUID, oversized content, etc.).


MISSING_VARIABLE​

MISSING_VARIABLE: "AISEC_MISSING_VARIABLE";

Defined in: src/errors.ts:12

Required configuration value is missing.


AISEC_SDK_ERROR​

AISEC_SDK_ERROR: "AISEC_SDK_ERROR";

Defined in: src/errors.ts:14

Internal SDK error.


OAUTH_ERROR​

OAUTH_ERROR: "AISEC_OAUTH_ERROR";

Defined in: src/errors.ts:16

OAuth2 token fetch failure.


RESPONSE_VALIDATION​

RESPONSE_VALIDATION: "AISEC_RESPONSE_VALIDATION";

Defined in: src/errors.ts:18

Server returned a 2xx body that did not match the declared response schema, or invalid JSON.