diff options
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/exception/runtime_exception.rs')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/exception/runtime_exception.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/exception/runtime_exception.rs b/crates/shirabe-external-packages/src/symfony/console/exception/runtime_exception.rs new file mode 100644 index 0000000..9efabed --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/console/exception/runtime_exception.rs @@ -0,0 +1,14 @@ +use super::exception_interface::ExceptionInterface; + +#[derive(Debug)] +pub struct RuntimeException(pub shirabe_php_shim::RuntimeException); + +impl std::fmt::Display for RuntimeException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.0) + } +} + +impl std::error::Error for RuntimeException {} + +impl ExceptionInterface for RuntimeException {} |
