[−][src]Enum aragog::ServiceError
Error enum used for the Arango ORM mapped as potential Http errors
Features
If the cargo feature actix_http_error
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.
A query/request timed out.
Can be interpreted as a HTTP code 408
Request timeout.
NotFound(String)
A record could not be found (see record query as implemented in Record
).
Can be interpreted as a HTTP code 404
not found.
An operation on a document failed due to format or data issue.
Can be interpreted as a HTTP code 422
unprocessable entity.
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.
The operation fails due to a conflict, for example a unique index was not respected.
Can be interpreted as a HTTP code 409
conflict.
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)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
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>,