aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs42
1 files changed, 42 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index 2c09d7c..4b4d719 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -71,36 +71,72 @@ pub struct RuntimeException {
pub code: i64,
}
+impl std::fmt::Display for RuntimeException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
#[derive(Debug)]
pub struct UnexpectedValueException {
pub message: String,
pub code: i64,
}
+impl std::fmt::Display for UnexpectedValueException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
#[derive(Debug)]
pub struct InvalidArgumentException {
pub message: String,
pub code: i64,
}
+impl std::fmt::Display for InvalidArgumentException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
#[derive(Debug)]
pub struct LogicException {
pub message: String,
pub code: i64,
}
+impl std::fmt::Display for LogicException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
#[derive(Debug)]
pub struct BadMethodCallException {
pub message: String,
pub code: i64,
}
+impl std::fmt::Display for BadMethodCallException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
#[derive(Debug)]
pub struct OutOfBoundsException {
pub message: String,
pub code: i64,
}
+impl std::fmt::Display for OutOfBoundsException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
#[derive(Debug)]
pub struct ErrorException {
pub message: String,
@@ -110,6 +146,12 @@ pub struct ErrorException {
pub lineno: i64,
}
+impl std::fmt::Display for ErrorException {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
pub fn is_bool(value: &PhpMixed) -> bool {
todo!()
}