aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-12 02:10:57 +0900
committernsfisis <nsfisis@gmail.com>2026-05-12 02:17:58 +0900
commit76fa34cb4df0ac1e619ac7c5899d37b77e4e4a13 (patch)
tree66d5721031187e519c0861011b2fcec15bbf8f21
parenta8aa49013faa6c43bef628eea6d6b5687100c17a (diff)
downloadphp-shirabe-76fa34cb4df0ac1e619ac7c5899d37b77e4e4a13.tar.gz
php-shirabe-76fa34cb4df0ac1e619ac7c5899d37b77e4e4a13.tar.zst
php-shirabe-76fa34cb4df0ac1e619ac7c5899d37b77e4e4a13.zip
feat(port): port IrrecoverableDownloadException.php
-rw-r--r--crates/shirabe-php-shim/src/lib.rs6
-rw-r--r--crates/shirabe/src/exception/irrecoverable_download_exception.rs4
2 files changed, 10 insertions, 0 deletions
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,4 +1,10 @@
#[derive(Debug)]
+pub struct RuntimeException {
+ pub message: String,
+ pub code: i64,
+}
+
+#[derive(Debug)]
pub struct UnexpectedValueException {
pub message: String,
pub code: i64,
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);