#[non_exhaustive]pub enum ErrorCode {
Show 111 variants
IndexCreationFailed,
IndexAlreadyExists,
IndexNotFound,
InvalidIndexUid,
InvalidState,
PrimaryKeyInferenceFailed,
IndexPrimaryKeyAlreadyPresent,
InvalidStoreFile,
MaxFieldsLimitExceeded,
MissingDocumentId,
InvalidDocumentId,
BadParameter,
BadRequest,
DatabaseSizeLimitReached,
DocumentNotFound,
InternalError,
InvalidApiKey,
MissingAuthorizationHeader,
TaskNotFound,
DumpNotFound,
MissingMasterKey,
NoSpaceLeftOnDevice,
PayloadTooLarge,
UnretrievableDocument,
SearchError,
UnsupportedMediaType,
DumpAlreadyProcessing,
DumpProcessFailed,
MissingContentType,
MalformedPayload,
InvalidContentType,
MissingPayload,
InvalidApiKeyDescription,
InvalidApiKeyActions,
InvalidApiKeyIndexes,
InvalidApiKeyExpiresAt,
ApiKeyNotFound,
MissingTaskFilters,
MissingIndexUid,
InvalidIndexOffset,
InvalidIndexLimit,
InvalidIndexPrimaryKey,
InvalidDocumentFilter,
MissingDocumentFilter,
InvalidDocumentFields,
InvalidDocumentLimit,
InvalidDocumentOffset,
InvalidDocumentGeoField,
InvalidSearchQ,
InvalidSearchOffset,
InvalidSearchLimit,
InvalidSearchPage,
InvalidSearchHitsPerPage,
InvalidSearchAttributesToRetrieve,
InvalidSearchAttributesToCrop,
InvalidSearchCropLength,
InvalidSearchAttributesToHighlight,
InvalidSearchShowMatchesPosition,
InvalidSearchFilter,
InvalidSearchSort,
InvalidSearchFacets,
InvalidSearchHighlightPreTag,
InvalidSearchHighlightPostTag,
InvalidSearchCropMarker,
InvalidSearchMatchingStrategy,
ImmutableApiKeyUid,
ImmutableApiKeyActions,
ImmutableApiKeyIndexes,
ImmutableExpiresAt,
ImmutableCreatedAt,
ImmutableUpdatedAt,
InvalidSwapDuplicateIndexFound,
InvalidSwapIndexes,
MissingSwapIndexes,
InvalidTaskTypes,
InvalidTaskUids,
InvalidTaskStatuses,
InvalidTaskLimit,
InvalidTaskFrom,
InvalidTaskCanceledBy,
InvalidTaskFilters,
TooManyOpenFiles,
IoError,
InvalidTaskIndexUids,
ImmutableIndexUid,
ImmutableIndexCreatedAt,
ImmutableIndexUpdatedAt,
InvalidSettingsDisplayedAttributes,
InvalidSettingsSearchableAttributes,
InvalidSettingsFilterableAttributes,
InvalidSettingsSortableAttributes,
InvalidSettingsRankingRules,
InvalidSettingsStopWords,
InvalidSettingsSynonyms,
InvalidSettingsDistinctAttributes,
InvalidSettingsTypoTolerance,
InvalidSettingsFaceting,
InvalidSettingsDictionary,
InvalidSettingsPagination,
InvalidTaskBeforeEnqueuedAt,
InvalidTaskAfterEnqueuedAt,
InvalidTaskBeforeStartedAt,
InvalidTaskAfterStartedAt,
InvalidTaskBeforeFinishedAt,
InvalidTaskAfterFinishedAt,
MissingApiKeyActions,
MissingApiKeyIndexes,
MissingApiKeyExpiresAt,
InvalidApiKeyLimit,
InvalidApiKeyOffset,
Unknown,
}
Expand description
The error code.
Officially documented at https://www.meilisearch.com/docs/reference/errors/error_codes.
Variants (Non-exhaustive)§
This enum is marked as 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.
IndexCreationFailed
IndexAlreadyExists
IndexNotFound
InvalidIndexUid
InvalidState
PrimaryKeyInferenceFailed
IndexPrimaryKeyAlreadyPresent
InvalidStoreFile
MaxFieldsLimitExceeded
MissingDocumentId
InvalidDocumentId
BadParameter
BadRequest
DatabaseSizeLimitReached
DocumentNotFound
InternalError
InvalidApiKey
MissingAuthorizationHeader
TaskNotFound
DumpNotFound
MissingMasterKey
NoSpaceLeftOnDevice
PayloadTooLarge
UnretrievableDocument
SearchError
UnsupportedMediaType
DumpAlreadyProcessing
DumpProcessFailed
MissingContentType
MalformedPayload
InvalidContentType
MissingPayload
InvalidApiKeyDescription
InvalidApiKeyActions
InvalidApiKeyIndexes
InvalidApiKeyExpiresAt
ApiKeyNotFound
MissingTaskFilters
MissingIndexUid
InvalidIndexOffset
InvalidIndexLimit
InvalidIndexPrimaryKey
InvalidDocumentFilter
MissingDocumentFilter
InvalidDocumentFields
InvalidDocumentLimit
InvalidDocumentOffset
InvalidDocumentGeoField
InvalidSearchQ
InvalidSearchOffset
InvalidSearchLimit
InvalidSearchPage
InvalidSearchHitsPerPage
InvalidSearchAttributesToRetrieve
InvalidSearchAttributesToCrop
InvalidSearchCropLength
InvalidSearchAttributesToHighlight
InvalidSearchShowMatchesPosition
InvalidSearchFilter
InvalidSearchSort
InvalidSearchFacets
InvalidSearchHighlightPreTag
InvalidSearchHighlightPostTag
InvalidSearchCropMarker
InvalidSearchMatchingStrategy
ImmutableApiKeyUid
ImmutableApiKeyActions
ImmutableApiKeyIndexes
ImmutableExpiresAt
ImmutableCreatedAt
ImmutableUpdatedAt
InvalidSwapDuplicateIndexFound
InvalidSwapIndexes
MissingSwapIndexes
InvalidTaskTypes
InvalidTaskUids
InvalidTaskStatuses
InvalidTaskLimit
InvalidTaskFrom
InvalidTaskCanceledBy
InvalidTaskFilters
TooManyOpenFiles
IoError
InvalidTaskIndexUids
ImmutableIndexUid
ImmutableIndexCreatedAt
ImmutableIndexUpdatedAt
InvalidSettingsDisplayedAttributes
InvalidSettingsSearchableAttributes
InvalidSettingsFilterableAttributes
InvalidSettingsSortableAttributes
InvalidSettingsRankingRules
InvalidSettingsStopWords
InvalidSettingsSynonyms
InvalidSettingsDistinctAttributes
InvalidSettingsTypoTolerance
InvalidSettingsFaceting
InvalidSettingsDictionary
InvalidSettingsPagination
InvalidTaskBeforeEnqueuedAt
InvalidTaskAfterEnqueuedAt
InvalidTaskBeforeStartedAt
InvalidTaskAfterStartedAt
InvalidTaskBeforeFinishedAt
InvalidTaskAfterFinishedAt
MissingApiKeyActions
MissingApiKeyIndexes
MissingApiKeyExpiresAt
InvalidApiKeyLimit
InvalidApiKeyOffset
Unknown
That’s unexpected. Please open a GitHub issue after ensuring you are using the supported version of the Meilisearch server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.