diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-18 00:07:23 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-18 00:15:34 +0900 |
| commit | 6b0296e195942c0c6e48f013e8af28170507d486 (patch) | |
| tree | 1c4ccae583bb422b8daf607fc326098aff4e4a6f /crates/shirabe/src/event_dispatcher/script_execution_exception.rs | |
| parent | 5461c8cffe839b49ae38e67146b4672bfd96d687 (diff) | |
| download | php-shirabe-6b0296e195942c0c6e48f013e8af28170507d486.tar.gz php-shirabe-6b0296e195942c0c6e48f013e8af28170507d486.tar.zst php-shirabe-6b0296e195942c0c6e48f013e8af28170507d486.zip | |
fix(compile): impl std::error::Error for custom error types
Diffstat (limited to 'crates/shirabe/src/event_dispatcher/script_execution_exception.rs')
| -rw-r--r-- | crates/shirabe/src/event_dispatcher/script_execution_exception.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/shirabe/src/event_dispatcher/script_execution_exception.rs b/crates/shirabe/src/event_dispatcher/script_execution_exception.rs index fe871bc..23b763f 100644 --- a/crates/shirabe/src/event_dispatcher/script_execution_exception.rs +++ b/crates/shirabe/src/event_dispatcher/script_execution_exception.rs @@ -5,3 +5,11 @@ use shirabe_php_shim::RuntimeException; /// Thrown when a script running an external process exits with a non-0 status code #[derive(Debug)] pub struct ScriptExecutionException(pub RuntimeException); + +impl std::fmt::Display for ScriptExecutionException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + self.0.fmt(f) + } +} + +impl std::error::Error for ScriptExecutionException {} |
