Enum meilisearch_sdk::errors::ErrorCode [−][src]
#[non_exhaustive]
pub enum ErrorCode {
Show 36 variants
IndexCreationFailed,
IndexAlreadyExists,
IndexNotFound,
InvalidIndexUid,
InvalidState,
PrimaryKeyInferenceFailed,
IndexPrimaryKeyAlreadyPresent,
InvalidRankingRule,
InvalidStoreFile,
MaxFieldsLimitExceeded,
MissingDocumentId,
InvalidDocumentId,
InvalidFilter,
InvalidSort,
BadParameter,
BadRequest,
DatabaseSizeLimitReached,
DocumentNotFound,
InternalError,
InvalidGeoField,
InvalidApiKey,
MissingAuthorizationHeader,
TaskNotFound,
DumpNotFound,
NoSpaceLeftOnDevice,
PayloadTooLarge,
UnretrievableDocument,
SearchError,
UnsupportedMediaType,
DumpAlreadyProcessing,
DumpProcessFailed,
MissingContentType,
MalformedPayload,
InvalidContentType,
MissingPayload,
Unknown(UnknownErrorCode),
}Expand description
The error code.
Officially documented at https://docs.meilisearch.com/errors.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Unknown(UnknownErrorCode)That’s unexpected. Please open a GitHub issue after ensuring you are using the supported version of the MeiliSearch server.
Tuple Fields of Unknown
Implementations
Converts the error code to the string representation returned by MeiliSearch.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more