Errors
Source: src/core/errors.ts
Error Hierarchy
Section titled “Error Hierarchy”Leap0Error
Section titled “Leap0Error”Extends Error.
Base SDK error for request, transport, and response-validation failures.
Includes optional HTTP metadata and a retryable hint for transient failures.
Leap0PermissionError
Section titled “Leap0PermissionError”Extends Leap0Error.
Error thrown when the API rejects a request due to missing permissions.
Leap0NotFoundError
Section titled “Leap0NotFoundError”Extends Leap0Error.
Error thrown when a requested API resource does not exist.
Leap0ConflictError
Section titled “Leap0ConflictError”Extends Leap0Error.
Error thrown when a request conflicts with the current server state.
Leap0RateLimitError
Section titled “Leap0RateLimitError”Extends Leap0Error.
Error thrown when the API rate-limits a request.
Leap0TimeoutError
Section titled “Leap0TimeoutError”Extends Leap0Error.
Error thrown when a request exceeds the configured timeout.
Leap0WebSocketError
Section titled “Leap0WebSocketError”Extends Leap0Error.
Error thrown for websocket-specific failures such as disconnects or protocol issues.