diff options
Diffstat (limited to 'crates/shirabe-external-packages/src/seld/json_lint/parsing_exception.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/seld/json_lint/parsing_exception.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/shirabe-external-packages/src/seld/json_lint/parsing_exception.rs b/crates/shirabe-external-packages/src/seld/json_lint/parsing_exception.rs new file mode 100644 index 0000000..3ec6b6b --- /dev/null +++ b/crates/shirabe-external-packages/src/seld/json_lint/parsing_exception.rs @@ -0,0 +1,13 @@ +#[derive(Debug)] +pub struct ParsingException { + pub message: String, + pub code: i64, +} + +impl std::fmt::Display for ParsingException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.message) + } +} + +impl std::error::Error for ParsingException {} |
