OutpostError
Purpose and behavior
Section titled “Purpose and behavior”Error that Outpost throws with a stable code, frozen details and a recovery record. cause holds the failure it reclassified or wrapped. You can throw it yourself with new OutpostError(code, message, details?, cause?).
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”recoveryRequiredReadonly<Record<string, unknown>>Locations of work retained after the failure, such as branch, directory, commits, transcript, logReference or conversation; empty when nothing was retained. A remote synchronization failure puts its transfer directory in details.recovery instead.codeRequiredFaultCodeStable Outpost fault category used for programmatic failure handling.detailsRequiredReadonly<Record<string, unknown>>Frozen diagnostics for the code: status, stdout, stderr and conversation for a failed agent process; status and retryAfterMs (the minimum wait of a task retry) for an HTTP model error; resetAt for a quota, and fallback when every fallback candidate hit one. unavailable marks an outage for unavailableFault(), including a timeout after an agent reported a connection failure.nameRequiredstringError class name used to distinguish this failure from other JavaScript errors.messageRequiredstringHuman-readable explanation of the failure.stackOptionalstring | undefinedJavaScript stack trace for the error, when available.causeOptionalunknownUnderlying failure this error wraps; quotaFault() and unavailableFault() follow this chain.