| Crates.io | sdml_error |
| lib.rs | sdml_error |
| version | 0.1.5 |
| created_at | 2024-02-16 15:53:29.576467+00 |
| updated_at | 2024-02-20 17:24:47.230603+00 |
| description | Simple Domain Modeling Language (SDML) errors and diagnostics. |
| homepage | |
| repository | https://github.com/johnstonskj/rust-sdml.git |
| max_upload_size | |
| id | 1142570 |
| size | 76,979 |
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.
╭───────╮
│ CLI │
╔══ │ crate │ ══╗
║ ╰───────╯ ║
┌╌╌╌╌╌╌╌╌┐ V V
┆ ┆ ╭──────────╮ ╭──────────╮ Formatted Source
┆ source ┆ ══> │ parse │ ══> │ generate │ ══> RDF Representation
┆ file ┆ ╭──│ crate │───────│ crate │──╮ Documentation
┆ ┆ │ ╰──────────╯ ╰──────────╯ │ Diagrams
└╌╌╌╌╌╌╌╌┘ │ core crate │──╮
╰───────────────────────────────────╯ │
┌───────┐ ⋀ error crate │
│ other │ ║ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌─────────────╯
│ tools │ ═══════════╝
└───────┘
Version 0.1.5
IdentifierNotPreferredCase where an identifier is not in the preferred case style for
its usage.
ErrorCodeidentifier_not_preferred_caseIdentifierCaseConvention used to identify the case style to enforce.Version 0.1.4
UseColor type.Version 0.1.3
DeprecatedTermUsed where an identifier includes a term listed in a supplied TermSet.
ErrorCodedeprecated_term_usedVersion 0.1.2
DoubleUnderscoredIdentifier where an identifier include two (or more) consecutive
underscore characters.
ErrorCodedouble_underscored_identifierVersion 0.1.1
PropertyReferenceNotProperty where the property name in a member does not resolve to
a property definition.
ErrorCodeproperty_reference_not_propertyVersion 0.1.0
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.