Enum aragog::error::ServiceError [−][src]
Error enum used for the Arango ORM mapped as potential Http errors
Features
If the cargo feature actix
is enabled, ServiceError
will implement the actix-web error system.
Allowing ServiceError
to be used in actix-web http endpoints.
Variants
Unhandled error.
Can be interpreted as a HTTP code 500
internal error.
ValidationError(String)
Validations failed (see model validation as implemented in Validate
.
Can be interpreted as a HTTP code 400
bad request.
An Item (document or collection) could not be found.
Can be interpreted as a HTTP code 404
not found.
Fields of NotFound
item: String
The missing item
id: String
The missing item identifier
source: Option<DatabaseError>
Optional database source error
An operation failed due to format or data issue.
Can be interpreted as a HTTP code 422
Unprocessable Entity.
ArangoError(DatabaseError)
The ArangoDb Error as returned by the database host
Can be interpreted as a HTTP code 500
Internal Error.
Failed to load config or initialize the app.
Can be interpreted as a HTTP code 500
Internal Error.
The operation is refused due to lack of authentication.
Can be interpreted as a HTTP code 401
unauthorized.
The operation is refused and authentication cannot resolve it.
Can be interpreted as a HTTP code 403
forbidden.
Implementations
impl ServiceError
[src]
Trait Implementations
impl Debug for ServiceError
[src]
impl Default for ServiceError
[src]
impl Display for ServiceError
[src]
impl Error for ServiceError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ClientError> for ServiceError
[src]
fn from(error: ClientError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServiceError
impl !Send for ServiceError
impl !Sync for ServiceError
impl Unpin for ServiceError
impl !UnwindSafe for ServiceError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,