pub enum ChrononError {
ScriptNotFound(String),
JobNotFound(String),
RunNotFound(String),
InvalidCron(String),
InvalidTimezone(String),
ParamError(String),
ScriptMismatch {
expected: String,
actual: String,
job_name: String,
},
StorageError(String),
Internal(String),
}Expand description
Errors that can occur in Chronon operations.
Returned by SchedulerStore implementations, the runtime
builder, and script dispatch. Hosts typically map these to HTTP status codes or log events.
Variants§
ScriptNotFound(String)
No script with the requested name is registered or persisted.
JobNotFound(String)
No job with the requested id or name exists in storage.
RunNotFound(String)
No run with the requested id exists in storage.
InvalidCron(String)
Cron expression failed validation (syntax or unsupported field).
InvalidTimezone(String)
IANA timezone string could not be parsed.
ParamError(String)
Job parameters, actor JSON, or handler inputs failed validation or deserialization.
ScriptMismatch
Job references a script name that does not match the registered script identity.
Fields
StorageError(String)
Underlying storage backend failed or returned an unexpected condition.
Internal(String)
Catch-all for invariant violations, identity reconstruction failures, and bugs.
Trait Implementations§
Source§impl Debug for ChrononError
impl Debug for ChrononError
Source§impl Display for ChrononError
impl Display for ChrononError
Source§impl Error for ChrononError
impl Error for ChrononError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()