pub enum ThothError {
Show 14 variants
InvalidSubjectCode(String, String),
InvalidLanguageCode(String),
InvalidWorkType(String),
InvalidWorkStatus(String),
InvalidContributionType(String),
InvalidPublicationType(String),
InvalidSeriesType(String),
InvalidSubjectType(String),
InvalidLanguageRelation(String),
DatabaseError(String),
InternalError(String),
Unauthorised,
InvalidToken,
CookieError(),
}
Variants§
InvalidSubjectCode(String, String)
InvalidLanguageCode(String)
InvalidWorkType(String)
InvalidWorkStatus(String)
InvalidContributionType(String)
InvalidPublicationType(String)
InvalidSeriesType(String)
InvalidSubjectType(String)
InvalidLanguageRelation(String)
DatabaseError(String)
InternalError(String)
InvalidToken
CookieError()
Trait Implementations§
Source§impl Debug for ThothError
impl Debug for ThothError
Source§impl Display for ThothError
impl Display for ThothError
Source§impl Fail for ThothError
impl Fail for ThothError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<Error> for ThothError
impl From<Error> for ThothError
Source§fn from(error: Error) -> ThothError
fn from(error: Error) -> ThothError
Converts to this type from the input type.
Source§impl From<Error> for ThothError
impl From<Error> for ThothError
Source§fn from(error: Error) -> ThothError
fn from(error: Error) -> ThothError
Converts to this type from the input type.
Source§impl From<EmitterError> for ThothError
impl From<EmitterError> for ThothError
Source§fn from(error: Error) -> ThothError
fn from(error: Error) -> ThothError
Converts to this type from the input type.
Source§impl From<Error> for ThothError
impl From<Error> for ThothError
Source§fn from(error: Error) -> ThothError
fn from(error: Error) -> ThothError
Converts to this type from the input type.
impl IntoFieldError for ThothError
Auto Trait Implementations§
impl Freeze for ThothError
impl RefUnwindSafe for ThothError
impl Send for ThothError
impl Sync for ThothError
impl Unpin for ThothError
impl UnwindSafe for ThothError
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