Separating elements from their parts.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
26
src/mtterror.rs
Normal file
26
src/mtterror.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
use isolang::Language;
|
||||
use super::message::{Field, FieldType, Name};
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum MTTError {
|
||||
AdditionMissingField(Name),
|
||||
CannotConvertMessageToRouteID,
|
||||
DocumentAlreadyExists(String),
|
||||
DocumentFieldAlreadyExists(String, Field),
|
||||
DocumentFieldMissing(String),
|
||||
DocumentFieldNotFound(String),
|
||||
DocumentFieldWrongDataType(FieldType, FieldType),
|
||||
DocumentNotFound(String),
|
||||
FieldDuplicate,
|
||||
FieldInvalidType,
|
||||
FieldMissingData,
|
||||
InvalidNone,
|
||||
RecordMismatch,
|
||||
NameDuplicate(Name),
|
||||
NameInvalidID(Uuid),
|
||||
NameMissingTranslation(Language),
|
||||
NameNotFound(Name),
|
||||
QueryCannotChangeData,
|
||||
RouteRequiresDocumentID,
|
||||
}
|
||||
Reference in New Issue
Block a user