UncageError
View as MarkdownDefined in: core/src/errors.ts:3
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UncageError(code, opts?): UncageError;Defined in: core/src/errors.ts:10
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
code |
| "runtime_unavailable" | "auth_required" | "unsupported_capability" | "invalid_workspace" | "session_busy" | "session_read_only" | "not_found" | "unauthorized" | "forbidden_origin" | "invalid_request" | "approval_expired" | "approval_already_resolved" | "event_replay_unavailable" | "runtime_disconnected" | "policy_denied" | "store_locked" | "attachment_too_large" | "attachment_type_unsupported" | "machine_offline" | "machine_not_found" | "upgrade_required" | "tool_failed" | "device_code_expired" | "rate_limited" | "internal_error" |
opts? |
{ cause?: unknown; details?: Record<string, unknown>; hint?: string; message?: string; } |
opts.cause? |
unknown |
opts.details? |
Record<string, unknown> |
opts.hint? |
string |
opts.message? |
string |
Returns
Section titled “Returns”UncageError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”code: | "runtime_unavailable" | "auth_required" | "unsupported_capability" | "invalid_workspace" | "session_busy" | "session_read_only" | "not_found" | "unauthorized" | "forbidden_origin" | "invalid_request" | "approval_expired" | "approval_already_resolved" | "event_replay_unavailable" | "runtime_disconnected" | "policy_denied" | "store_locked" | "attachment_too_large" | "attachment_type_unsupported" | "machine_offline" | "machine_not_found" | "upgrade_required" | "tool_failed" | "device_code_expired" | "rate_limited" | "internal_error";Defined in: core/src/errors.ts:4
details?
Section titled “details?”details?: Record<string, unknown>;Defined in: core/src/errors.ts:8
hint?: string;Defined in: core/src/errors.ts:5
retryable
Section titled “retryable”retryable: boolean;Defined in: core/src/errors.ts:6
status
Section titled “status”status: number;Defined in: core/src/errors.ts:7
Methods
Section titled “Methods”toBody()
Section titled “toBody()”toBody(requestId?): object;Defined in: core/src/errors.ts:24
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
requestId? |
string |
Returns
Section titled “Returns”object
| Name | Type | Defined in |
|---|---|---|
code |
| "runtime_unavailable" | "auth_required" | "unsupported_capability" | "invalid_workspace" | "session_busy" | "session_read_only" | "not_found" | "unauthorized" | "forbidden_origin" | "invalid_request" | "approval_expired" | "approval_already_resolved" | "event_replay_unavailable" | "runtime_disconnected" | "policy_denied" | "store_locked" | "attachment_too_large" | "attachment_type_unsupported" | "machine_offline" | "machine_not_found" | "upgrade_required" | "tool_failed" | "device_code_expired" | "rate_limited" | "internal_error" |
protocol/dist/index.d.ts:39 |
details? |
Record<string, unknown> |
protocol/dist/index.d.ts:69 |
hint? |
string |
protocol/dist/index.d.ts:67 |
message |
string |
protocol/dist/index.d.ts:66 |
requestId? |
string |
protocol/dist/index.d.ts:70 |
retryable |
boolean |
protocol/dist/index.d.ts:68 |