Enum taple_core::ApiError
source · pub enum ApiError {
EventCreationError {
source: EventError,
},
NotFound(String),
UnexpectedError,
ApprovalInternalError {
source: ApprovalErrorResponse,
},
InvalidParameters(String),
SignError,
VoteNotNeeded(String),
NotEnoughPermissions(String),
DatabaseError(String),
Conflict(String),
}
Expand description
Errors that may occur when using the TAPLE API
Variants§
EventCreationError
Fields
§
source: EventError
NotFound(String)
An item of the protocol has not been found, for example, a subject
UnexpectedError
An unexpected error has occurred
ApprovalInternalError
Fields
§
source: ApprovalErrorResponse
An error has occurred in the process of creating an event. An internal error has occurred
InvalidParameters(String)
Invalid parameters have been entered, usually identifiers.
SignError
An error occurred during a signature process
VoteNotNeeded(String)
No permissions required or possessed to vote on an event request.
NotEnoughPermissions(String)
DatabaseError(String)
Conflict(String)
Trait Implementations§
source§impl Error for ApiError
impl Error for ApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnwindSafe for ApiError
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