diff options
Diffstat (limited to 'crates/shirabe-symfony-console/src/exception/namespace_not_found_exception.rs')
| -rw-r--r-- | crates/shirabe-symfony-console/src/exception/namespace_not_found_exception.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/shirabe-symfony-console/src/exception/namespace_not_found_exception.rs b/crates/shirabe-symfony-console/src/exception/namespace_not_found_exception.rs new file mode 100644 index 00000000..31da0305 --- /dev/null +++ b/crates/shirabe-symfony-console/src/exception/namespace_not_found_exception.rs @@ -0,0 +1,21 @@ +//! ref: composer/vendor/symfony/console/Exception/NamespaceNotFoundException.php + +use super::command_not_found_exception::CommandNotFoundException; +use super::exception_interface::ExceptionInterface; + +#[derive(Debug)] +pub struct NamespaceNotFoundException(pub CommandNotFoundException); + +impl NamespaceNotFoundException { + pub fn new(message: String, alternatives: Vec<String>, code: i64) -> Self { + Self(CommandNotFoundException::new(message, alternatives, code)) + } +} + +shirabe_php_shim::impl_php_exception!( + NamespaceNotFoundException, + 0, + r"Symfony\Component\Console\Exception\NamespaceNotFoundException" +); + +impl ExceptionInterface for NamespaceNotFoundException {} |
