aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/seld/json_lint/duplicate_key_exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-external-packages/src/seld/json_lint/duplicate_key_exception.rs')
-rw-r--r--crates/shirabe-external-packages/src/seld/json_lint/duplicate_key_exception.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/crates/shirabe-external-packages/src/seld/json_lint/duplicate_key_exception.rs b/crates/shirabe-external-packages/src/seld/json_lint/duplicate_key_exception.rs
deleted file mode 100644
index 17e6a90..0000000
--- a/crates/shirabe-external-packages/src/seld/json_lint/duplicate_key_exception.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-//! ref: composer/vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php
-
-use indexmap::IndexMap;
-use shirabe_php_shim::PhpMixed;
-
-#[derive(Debug)]
-pub struct DuplicateKeyException {
- pub message: String,
- pub code: i64,
- pub details: IndexMap<String, PhpMixed>,
-}
-
-impl DuplicateKeyException {
- pub fn get_details(&self) -> &IndexMap<String, PhpMixed> {
- &self.details
- }
-}
-
-impl std::fmt::Display for DuplicateKeyException {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.message)
- }
-}
-
-impl std::error::Error for DuplicateKeyException {}