pub enum CodexError {
Show 30 variants
Spawn {
binary: PathBuf,
source: Error,
},
Wait {
source: Error,
},
Timeout {
timeout: Duration,
},
NonZeroExit {
status: ExitStatus,
stderr: String,
},
InvalidUtf8(FromUtf8Error),
JsonParse {
context: &'static str,
stdout: String,
source: Error,
},
ExecPolicyParse {
stdout: String,
source: Error,
},
FeatureListParse {
reason: String,
stdout: String,
},
ResponsesApiProxyInfoRead {
path: PathBuf,
source: Error,
},
ResponsesApiProxyInfoParse {
path: PathBuf,
source: Error,
},
EmptyPrompt,
EmptySandboxCommand,
EmptyExecPolicyCommand,
EmptyApiKey,
EmptyTaskId,
EmptyEnvId,
EmptyMcpServerName,
EmptyMcpCommand,
EmptyMcpUrl,
EmptySocketPath,
TempDir(Error),
WorkingDirectory {
source: Error,
},
PrepareOutputDirectory {
path: PathBuf,
source: Error,
},
PrepareCodexHome {
path: PathBuf,
source: Error,
},
StdoutUnavailable,
StderrUnavailable,
StdinUnavailable,
CaptureIo(Error),
StdinWrite(Error),
Join(JoinError),
}Expand description
Errors that may occur while invoking the Codex CLI.
Variants§
Spawn
Wait
Timeout
NonZeroExit
InvalidUtf8(FromUtf8Error)
JsonParse
ExecPolicyParse
FeatureListParse
ResponsesApiProxyInfoRead
ResponsesApiProxyInfoParse
EmptyPrompt
EmptySandboxCommand
EmptyExecPolicyCommand
EmptyApiKey
EmptyTaskId
EmptyEnvId
EmptyMcpServerName
EmptyMcpCommand
EmptyMcpUrl
EmptySocketPath
TempDir(Error)
WorkingDirectory
PrepareOutputDirectory
PrepareCodexHome
CaptureIo(Error)
StdinWrite(Error)
Join(JoinError)
Trait Implementations§
Source§impl Debug for CodexError
impl Debug for CodexError
Source§impl Display for CodexError
impl Display for CodexError
Source§impl Error for CodexError
impl Error for CodexError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CodexError> for ExecStreamError
impl From<CodexError> for ExecStreamError
Source§fn from(source: CodexError) -> Self
fn from(source: CodexError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CodexError
impl From<Error> for CodexError
Source§impl From<FromUtf8Error> for CodexError
impl From<FromUtf8Error> for CodexError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodexError
impl !RefUnwindSafe for CodexError
impl Send for CodexError
impl Sync for CodexError
impl Unpin for CodexError
impl UnsafeUnpin for CodexError
impl !UnwindSafe for CodexError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more