pub enum ErrorCode {
Show 27 variants
E001,
E002,
E003,
E004,
E005,
E006,
E100,
E101,
E200,
E201,
E202,
E203,
E204,
E300,
E301,
E302,
E303,
E304,
E305,
E306,
E307,
E308,
E309,
E400,
E401,
E402,
E403,
}Expand description
Error codes for categorizing diagnostic errors.
Variants§
E001
Unterminated string literal.
A string was opened with a quote but never closed.
E002
Unexpected character.
A character was encountered that is not valid in this context.
E003
Invalid escape sequence.
An unrecognized escape sequence was used in a string literal.
Valid escapes are: \n, \r, \t, \b, \f, \\, \/, \', \", \0, \u{...}.
E004
Invalid unicode escape format.
A unicode escape sequence was malformed. Unicode escapes must use
the format \u{XXXX} with 1-6 hexadecimal digits.
E005
Invalid unicode codepoint.
The unicode codepoint is out of range or in the surrogate range. Valid codepoints are 0x0000-0xD7FF and 0xE000-0x10FFFF.
E006
Empty unicode escape.
A unicode escape \u{} was found with no hexadecimal digits.
E100
Unexpected token.
The parser encountered a token it did not expect at this position.
E101
Incomplete input.
The input ended unexpectedly before a complete construct was parsed.
E200
Undefined component reference.
A component was referenced that has not been defined.
E201
Unpaired activate statement.
An activate statement has no matching deactivate.
E202
Unpaired deactivate statement.
A deactivate statement has no matching activate.
E203
Invalid align value for diagram type.
The specified alignment is not valid for this diagram type.
E204
Unknown embed reference.
An embed <name> references an identifier that doesn’t match any
namespaced import in the current file.
E300
Undefined type reference.
A type was referenced that has not been defined.
E301
Type override not supported.
Overriding is not supported for this type.
E302
Invalid attribute value.
An attribute value is not valid for the expected type.
E303
Unknown attribute.
An attribute was specified that is not recognized.
E304
Unsupported attribute for shape/type.
The attribute is valid but not supported for this particular shape or type.
E305
Nested diagram not allowed.
A diagram definition was found inside another diagram.
E306
Invalid diagram structure.
The diagram structure is invalid or malformed.
E307
Type mismatch.
A type was used in a context where a different kind of type was expected (e.g., using an Arrow type where a Shape type is required).
E308
Shape does not support nested content.
An attempt was made to add nested content to a shape type that does not support it.
E309
Unresolved embed reference.
An embed <name> references a diagram that could not be resolved.
E400
File not found.
A source file referenced by an import declaration or passed as the root entry point could not be resolved or read.
E401
Circular dependency.
A file appears in its own import chain, forming a cycle.
E402
Invalid import path.
An import path is malformed (e.g., empty).
E403
Invalid namespace derivation.
A namespace identifier could not be derived from the import path (e.g., the path has no file stem or contains non-UTF-8 components).
Implementations§
Trait Implementations§
impl 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 UnsafeUnpin 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
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§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
key and return true if they are equal.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>
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>
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 more