Enum sdml_errors::diagnostics::codes::ErrorCode
source · #[repr(u32)]pub enum ErrorCode {
Show 36 variants
TreeSitterErrorNode = 1,
TreeSitterUnexpectedNode = 2,
TreeSitterMissingNode = 3,
TreeSitterMissingVariable = 4,
ModuleNotFound = 100,
ImportedModuleNotFound = 101,
ModuleVersionNotFound = 102,
ModuleVersionMismatch = 103,
DuplicateDefinitionName = 104,
DuplicateMemberName = 105,
DuplicateVariantName = 106,
InvalidIdentifier = 107,
InvalidLanguageTag = 108,
InvalidValueForType = 109,
InvalidModuleBaseUrl = 110,
InvalidModuleVersionUrl = 112,
DefinitionNotFound = 113,
TypeDefinitionNotFound = 114,
DatatypeInvalidBase = 115,
TypeClassIncompatible = 116,
PropertyIncompatible = 117,
RdfDefinitionIncompatible = 118,
FeatureSetNotUnion = 119,
PropertyReferenceNotProperty = 120,
DuplicateModuleImport = 301,
DuplicateDefinitionImport = 302,
ValidationIncomplete = 303,
ModuleVersionInfoEmpty = 304,
DeprecatedTermUsed = 305,
IncompleteModule = 500,
IncompleteDefinition = 501,
IncompleteMember = 502,
StringWithoutLanguage = 503,
UnconstrainedDatatype = 504,
DoubleUnderscoredIdentifier = 505,
IdentifierNotPreferredCase = 506,
}
Variants§
TreeSitterErrorNode = 1
TreeSitterUnexpectedNode = 2
TreeSitterMissingNode = 3
TreeSitterMissingVariable = 4
ModuleNotFound = 100
ImportedModuleNotFound = 101
ModuleVersionNotFound = 102
ModuleVersionMismatch = 103
DuplicateDefinitionName = 104
DuplicateMemberName = 105
DuplicateVariantName = 106
InvalidIdentifier = 107
InvalidLanguageTag = 108
InvalidValueForType = 109
InvalidModuleBaseUrl = 110
InvalidModuleVersionUrl = 112
DefinitionNotFound = 113
TypeDefinitionNotFound = 114
DatatypeInvalidBase = 115
TypeClassIncompatible = 116
PropertyIncompatible = 117
RdfDefinitionIncompatible = 118
FeatureSetNotUnion = 119
PropertyReferenceNotProperty = 120
DuplicateModuleImport = 301
DuplicateDefinitionImport = 302
ValidationIncomplete = 303
ModuleVersionInfoEmpty = 304
DeprecatedTermUsed = 305
IncompleteModule = 500
IncompleteDefinition = 501
IncompleteMember = 502
StringWithoutLanguage = 503
UnconstrainedDatatype = 504
DoubleUnderscoredIdentifier = 505
IdentifierNotPreferredCase = 506
Implementations§
Trait Implementations§
source§impl From<ErrorCode> for Diagnostic
impl From<ErrorCode> for Diagnostic
source§impl Ord for ErrorCode
impl Ord for ErrorCode
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ErrorCode
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)