error module
Errors, error codes, and error messages.
Classes
| IntegrationError |
This error is thrown in cases where an API is called improperly. For detailed error codes refer to IntegrationErrorCodes. |
| InternalError |
This error is thrown when something internal to the SDK fails. |
| SdkError |
Base error class for all SDK errors. |
Type Aliases
| ErrorEvents |
Error events. |
| ErrorOccurredDetail |
Event detail of an error that occurred within the SDK. |
| NonSupportedBrowserDetectedDetail |
Event detail for when a non-supported browser is detected. Reuses BrowserCompatibilityStatus but omits the isSupported field. |
Variables
| events | The listener only EventTarget for error events. |
| Integration |
Error codes for integration errors. These errors occur when the SDK API is used incorrectly. |
| Integration |
Human-readable error messages corresponding to integration error codes. |
Variable Details
events
The listener only EventTarget for error events.
events: DragonEventTarget<ErrorEvents>
Type
IntegrationErrorCodes
Error codes for integration errors. These errors occur when the SDK API is used incorrectly.
IntegrationErrorCodes: Readonly<{ invalidAction: "invalid_action", invalidArguments: "invalid_arguments", systemNotInitialized: "system_not_initialized" }>
Type
Readonly<{ invalidAction: "invalid_action", invalidArguments: "invalid_arguments", systemNotInitialized: "system_not_initialized" }>
IntegrationErrorMessages
Human-readable error messages corresponding to integration error codes.
IntegrationErrorMessages: Readonly<{ invalid_action: "The action is not valid in the current state.", invalid_arguments: "Invalid argument(s) provided.", system_not_initialized: "System is not initialized, please initialize before using this feature." }>
Type
Readonly<{ invalid_action: "The action is not valid in the current state.", invalid_arguments: "Invalid argument(s) provided.", system_not_initialized: "System is not initialized, please initialize before using this feature." }>