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
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)
Tuple Fields
That’s unexpected. Please open a GitHub issue after ensuring you are using the supported version of the MeiliSearch server.
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
