aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs')
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs b/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs
new file mode 100644
index 0000000..3ffcc9c
--- /dev/null
+++ b/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs
@@ -0,0 +1,14 @@
+#[derive(Debug)]
+pub struct IOException {
+ pub message: String,
+ pub code: i64,
+ pub path: Option<String>,
+}
+
+impl std::fmt::Display for IOException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}", self.message)
+ }
+}
+
+impl std::error::Error for IOException {}