Enum aragog::error::ArangoHttpError [−][src]
Arango Http error based on the response http code
Variants
400 - ERROR_HTTP_BAD_PARAMETER
Will be raised when the HTTP request does not fulfill the requirements.
401 - ERROR_HTTP_UNAUTHORIZED
Will be raised when authorization is required but the user is not authorized.
403 - ERROR_HTTP_FORBIDDEN
Will be raised when the operation is forbidden.
404 - ERROR_HTTP_NOT_FOUND
Will be raised when an URI is unknown or a database element is not found.
405 - ERROR_HTTP_METHOD_NOT_ALLOWED
Will be raised when an unsupported HTTP method is used for an operation.
406 - ERROR_HTTP_NOT_ACCEPTABLE
Will be raised when an unsupported HTTP content type is used for an operation
409 - ERROR_HTTP_CONFLICT
Will be raised when conflict occured (index unique constraint for example)
412 - ERROR_HTTP_PRECONDITION_FAILED
Will be raised when a precondition for an HTTP request is not met.
500 - ERROR_HTTP_SERVER_ERROR
Will be raised when an internal server is encountered.
503 - ERROR_HTTP_SERVICE_UNAVAILABLE
Will be raised when a service is temporarily unavailable.
504 - ERROR_HTTP_GATEWAY_TIMEOUT
Will be raised when a service contacted by ArangoDB does not respond in a timely manner.
600 - ERROR_HTTP_CORRUPTED_JSON
Will be raised when a string representation of a JSON object is corrupt.
601 - ERROR_HTTP_SUPERFLUOUS_SUFFICES
Will be raised when the URL contains superfluous suffices.
UnknownError(u16)
Unknown Http error, happens when the HTTP code is not handled
Implementations
impl ArangoHttpError
[src]
Trait Implementations
impl Clone for ArangoHttpError
[src]
fn clone(&self) -> ArangoHttpError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ArangoHttpError
[src]
impl Display for ArangoHttpError
[src]
impl Error for ArangoHttpError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[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 PartialEq<ArangoHttpError> for ArangoHttpError
[src]
fn eq(&self, other: &ArangoHttpError) -> bool
[src]
fn ne(&self, other: &ArangoHttpError) -> bool
[src]
impl StructuralPartialEq for ArangoHttpError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArangoHttpError
impl Send for ArangoHttpError
impl Sync for ArangoHttpError
impl Unpin for ArangoHttpError
impl UnwindSafe for ArangoHttpError
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,