pub enum ServerError {
Creation,
PasswordHash,
Hook(HookError),
Finance(FinanceError),
DB(DBError),
Uuid(Error),
Lock,
Script(String),
TagClash {
name: String,
value: String,
},
StaleTag,
StaleTemplate,
StaleScript,
}Variants§
Creation
PasswordHash
Hook(HookError)
Finance(FinanceError)
DB(DBError)
Uuid(Error)
Lock
Script(String)
Script-runner orchestration failure (transaction read, script
execution, or output application). Distinct from Hook which
wraps the in-script executor error type; this variant covers
the surrounding command-loop bookkeeping.
TagClash
StaleTag
StaleTemplate
StaleScript
Implementations§
Source§impl ServerError
impl ServerError
Sourcepub fn busy(&self) -> Option<DBError>
pub fn busy(&self) -> Option<DBError>
The busy condition the failure stands for: a write conflict or a lock timeout, both of which the user may simply try again.
True when the database behind the failure cannot be reached right now.
Sourcepub fn is_missing_row(&self) -> bool
pub fn is_missing_row(&self) -> bool
True when a lookup matched no row.
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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<BatchError> for ServerError
impl From<BatchError> for ServerError
Source§fn from(err: BatchError) -> Self
fn from(err: BatchError) -> Self
Converts to this type from the input type.
Source§impl From<DBError> for ServerError
impl From<DBError> for ServerError
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<FinanceError> for ServerError
impl From<FinanceError> for ServerError
Source§fn from(source: FinanceError) -> Self
fn from(source: FinanceError) -> Self
Converts to this type from the input type.
Source§impl From<HookError> for ServerError
impl From<HookError> for ServerError
Source§impl From<ServerError> for CmdError
impl From<ServerError> for CmdError
Source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
Source§impl From<ServerError> for RunError
impl From<ServerError> for RunError
Source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
Source§impl From<ServerError> for BatchError
impl From<ServerError> for BatchError
Source§fn from(error: ServerError) -> Self
fn from(error: ServerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl !UnwindSafe for ServerError
impl Freeze for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more