From 76fa34cb4df0ac1e619ac7c5899d37b77e4e4a13 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 12 May 2026 02:10:57 +0900 Subject: feat(port): port IrrecoverableDownloadException.php --- crates/shirabe-php-shim/src/lib.rs | 6 ++++++ crates/shirabe/src/exception/irrecoverable_download_exception.rs | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'crates') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 0e8fab5..e79c971 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1,3 +1,9 @@ +#[derive(Debug)] +pub struct RuntimeException { + pub message: String, + pub code: i64, +} + #[derive(Debug)] pub struct UnexpectedValueException { pub message: String, diff --git a/crates/shirabe/src/exception/irrecoverable_download_exception.rs b/crates/shirabe/src/exception/irrecoverable_download_exception.rs index a7df54c..35fd915 100644 --- a/crates/shirabe/src/exception/irrecoverable_download_exception.rs +++ b/crates/shirabe/src/exception/irrecoverable_download_exception.rs @@ -1 +1,5 @@ //! ref: composer/src/Composer/Exception/IrrecoverableDownloadException.php + +use shirabe_php_shim::RuntimeException; + +pub struct IrrecoverableDownloadException(pub RuntimeException); -- cgit v1.3.1