| Crates.io | sdml-errors |
| lib.rs | sdml-errors |
| version | 0.4.1 |
| created_at | 2024-06-28 03:34:46.866878+00 |
| updated_at | 2025-04-15 21:40:45.345829+00 |
| description | Simple Domain Modeling Language (SDML) errors and diagnostics. |
| homepage | |
| repository | https://github.com/johnstonskj/rust-sdml.git |
| max_upload_size | |
| id | 1286430 |
| size | 134,431 |
Rust Library containing the error and diagnostic types for the Simple Domain Modeling Language (SDML).
This package is part of the Rust SDML project and specifically defines the error and diagnostic types for the project. The project's intent is to provide an idiomatic implementation of the in-memory model, parser, generators, and the CLI tool.
The following figure demonstrates this package in the broader project context.

LanguageTagError variant for external error type.Template variant for external error type.
sdml-core supporting the latest grammar.Error, GeneratorError for use by the
sdml-generator crate.IdentifierNotPreferredCase where an identifier
is not in the preferred case style for its usage.
ErrorCode.identifier_not_preferred_case.IdentifierCaseConvention used to identify the case style to
enforce.UseColor type.DeprecatedTermUsed where an identifier
includes a term listed in a supplied TermSet.
ErrorCode.deprecated_term_used.DoubleUnderscoredIdentifier where an
identifier include two (or more) consecutive underscore characters.
ErrorCode.double_underscored_identifier.PropertyReferenceNotProperty where the
property name in a member does not resolve to a property definition.
ErrorCode.property_reference_not_property.Initial Release.
error module from sdml_core, rename as errors.Error type.diagnostics module.diagnostics::codes module and ErrorCode enum.diagnostics::functions module and functions for each ErrorCode.diagnostics::reporter module.Reporter trait.StandardStreamReporter to emit colored and structured errors to the
console.BailoutReporter that will turn the first diagnostic it is given
into an error.