aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/exception/irrecoverable_download_exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/exception/irrecoverable_download_exception.rs')
-rw-r--r--crates/shirabe/src/exception/irrecoverable_download_exception.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/shirabe/src/exception/irrecoverable_download_exception.rs b/crates/shirabe/src/exception/irrecoverable_download_exception.rs
index 35fd915..a8d2dbb 100644
--- a/crates/shirabe/src/exception/irrecoverable_download_exception.rs
+++ b/crates/shirabe/src/exception/irrecoverable_download_exception.rs
@@ -2,4 +2,13 @@
use shirabe_php_shim::RuntimeException;
+#[derive(Debug)]
pub struct IrrecoverableDownloadException(pub RuntimeException);
+
+impl std::fmt::Display for IrrecoverableDownloadException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ self.0.fmt(f)
+ }
+}
+
+impl std::error::Error for IrrecoverableDownloadException {}