Enum meilisearch_sdk::errors::Error [−][src]
#[non_exhaustive]
pub enum Error {
MeiliSearchError {
message: String,
error_code: ErrorCode,
error_type: ErrorType,
error_link: String,
},
UnreachableServer,
ParseError(Error),
InvalidRequest,
HttpError(Error),
}An enum representing the errors that can occur.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Show fields
Fields of MeiliSearchError
message: StringThe human readable error message
error_code: ErrorCodeThe error code of the error. Officially documented at https://docs.meilisearch.com/errors.
error_type: ErrorTypeThe type of error (invalid request, internal error, or authentication error)
error_link: StringA link to the MeiliSearch documentation for an error.
There is no MeiliSearch server listening on the [specified host] (../client/struct.Client.html#method.new).
ParseError(Error)The MeiliSearch server returned invalid JSON for a request.
This Meilisearch sdk generated an invalid request (which was not sent). It probably comes from an invalid API key resulting in an invalid HTTP header.
HttpError(Error)The http client encountered an error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Errorimpl !UnwindSafe for Error
impl !UnwindSafe for ErrorBlanket Implementations
impl<T> Instrument 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]
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> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,