pub enum ConductorError {
Show 15 variants
Http(Error),
Json(Error),
Config(String),
Auth(String),
TaskExecution(String),
TaskNotFound(String),
WorkflowNotFound(String),
Workflow(String),
Worker(String),
Timeout(String),
Server {
status: u16,
message: String,
},
Api {
message: String,
code: Option<String>,
},
Internal(String),
Io(Error),
Channel(String),
}Expand description
Main error type for all Conductor SDK operations.
Variants§
Http(Error)
HTTP request failed.
Json(Error)
JSON serialization/deserialization failed.
Config(String)
Configuration error.
Auth(String)
Authentication error.
TaskExecution(String)
Task execution error.
TaskNotFound(String)
Task not found.
WorkflowNotFound(String)
Workflow not found.
Workflow(String)
Workflow execution error.
Worker(String)
Worker error.
Timeout(String)
Timeout error.
Server
Server error with status code.
Api
API error with details.
Internal(String)
Internal error.
Io(Error)
IO error.
Channel(String)
Channel error (for async communication).
Implementations§
Source§impl ConductorError
impl ConductorError
Sourcepub fn task_execution(msg: impl Into<String>) -> Self
pub fn task_execution(msg: impl Into<String>) -> Self
Create a task execution error.
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if this error is retryable.
Trait Implementations§
Source§impl Debug for ConductorError
impl Debug for ConductorError
Source§impl Display for ConductorError
impl Display for ConductorError
Source§impl Error for ConductorError
impl Error for ConductorError
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<Error> for ConductorError
impl From<Error> for ConductorError
Source§impl From<Error> for ConductorError
impl From<Error> for ConductorError
Auto Trait Implementations§
impl !RefUnwindSafe for ConductorError
impl !UnwindSafe for ConductorError
impl Freeze for ConductorError
impl Send for ConductorError
impl Sync for ConductorError
impl Unpin for ConductorError
impl UnsafeUnpin for ConductorError
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