Crates.io | sdml_error |
lib.rs | sdml_error |
version | 0.1.5 |
source | src |
created_at | 2024-02-16 15:53:29.576467 |
updated_at | 2024-02-20 17:24:47.230603 |
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.
ErrorCode
identifier_not_preferred_case
IdentifierCaseConvention
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
.
ErrorCode
deprecated_term_used
Version 0.1.2
DoubleUnderscoredIdentifier
where an identifier include two (or more) consecutive
underscore characters.
ErrorCode
double_underscored_identifier
Version 0.1.1
PropertyReferenceNotProperty
where the property name in a member does not resolve to
a property definition.
ErrorCode
property_reference_not_property
Version 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.