Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeCommandNotFound = "COMMAND_NOT_FOUND" CodeParamRequired = "PARAM_REQUIRED" CodeParamInvalid = "PARAM_INVALID" CodeInvalidParams = "INVALID_PARAMS_JSON" CodeOperationCancelled = "OPERATION_CANCELLED" )
User errors (CategoryUser → exit 1)
View Source
const ( CodeServerError = "SERVER_ERROR" CodeNetworkError = "NETWORK_ERROR" CodeServerTimeout = "SERVER_TIMEOUT" )
Server errors (CategoryServer → exit 2)
View Source
const ( CodeAuthRequired = "AUTH_REQUIRED" CodeAuthFailed = "AUTH_FAILED" CodeTokenExpired = "TOKEN_EXPIRED" CodeRefreshFailed = "REFRESH_FAILED" CodePermissionDenied = "PERMISSION_DENIED" )
Auth errors (CategoryAuth → exit 3)
View Source
const ( CodeNotInitialized = "NOT_INITIALIZED" CodeConfigInvalid = "CONFIG_INVALID" CodeProfileNotFound = "PROFILE_NOT_FOUND" )
Config errors (CategoryConfig → exit 4)
View Source
const ( CodeRegistryBuildFailed = "REGISTRY_BUILD_FAILED" CodeFormatterError = "FORMATTER_ERROR" CodeInternal = "INTERNAL" )
Internal errors (CategoryInternal → exit 5)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLIError ¶
func (*CLIError) IsRetryable ¶
IsRetryable reports whether retrying the operation that produced this error has a reasonable chance of succeeding. Only CategoryServer errors (transient network / backend 5xx) are considered retryable by default; user, auth, config and internal errors are not. Exposed on the envelope payload as the `retryable` field so Agents can decide whether to re-issue the command.
Click to show internal directories.
Click to hide internal directories.