[−][src]Enum meilisearch_sdk::errors::ErrorCode
The error code.
Officially documented at https://docs.meilisearch.com/errors.
Variants (Non-exhaustive)
An error occurred while trying to create an index.
An index with this UID already exists. You may want to use the
get_or_create
method.
No index was found with that UID. You may want to use the get_or_create method.
There was an error in the provided index format. Index UIDs can only be composed of alphanumeric characters, hyphens (-), and underscores (_).
An internal error occurred while trying to access the requested index.
The database is in an invalid state. Deleting the database and re-indexing should solve the problem.
MeiliSearch couldn't infer the primary key for the given documents. Consider specifying the key manually.
The index already has a set primary key which can't be changed.
A document was added with more than 65,535 fields.
A document is missing its primary key.
The facet provided with the search was invalid.
The filter provided with the search was invalid.
The request contains invalid parameters, check the error message for more information.
The request is invalid, check the error message for more information.
The requested document can't be retrieved. Either it doesn't exist, or the database was left in an inconsistent state.
MeiliSearch experienced an internal error. Check the error message and open an issue if necessary.
The provided token is invalid.
The MeiliSearch instance is under maintenance. You can set the maintenance
state by using the set_healthy
method of a Client.
The requested resources are protected with an API key, which was not provided in the request header.
The requested resources could not be found.
The payload sent to the server was too large.
The document exists in store, but there was an error retrieving it. This is likely caused by an inconsistent state in the database.
There was an error in the search.
The payload content type is not supported by MeiliSearch. Currently, MeiliSearch only supports JSON payloads.
Unknown(UnknownErrorCode)
That's unexpected. Please open a GitHub issue after ensuring you are using the supported version of the MeiliSearch server.
Implementations
impl ErrorCode
[src]
pub fn as_str(&self) -> &str
[src]
Converts the error code to the string representation returned by MeiliSearch.
pub fn parse(input: &str) -> Self
[src]
Converts the error code string returned by MeiliSearch into an ErrorCode
enum. If the error type input is not recognized, ErrorCode::Unknown
is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,