aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index e87cd2d..9b264e2 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -311,6 +311,20 @@ impl std::fmt::Display for InvalidArgumentException {
impl std::error::Error for InvalidArgumentException {}
#[derive(Debug)]
+pub struct TypeError {
+ pub message: String,
+ pub code: i64,
+}
+
+impl std::fmt::Display for TypeError {
+ fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ todo!()
+ }
+}
+
+impl std::error::Error for TypeError {}
+
+#[derive(Debug)]
pub struct LogicException {
pub message: String,
pub code: i64,