aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-console/src/exception/missing_input_exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-symfony-console/src/exception/missing_input_exception.rs')
-rw-r--r--crates/shirabe-symfony-console/src/exception/missing_input_exception.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/shirabe-symfony-console/src/exception/missing_input_exception.rs b/crates/shirabe-symfony-console/src/exception/missing_input_exception.rs
new file mode 100644
index 00000000..f9ddc0e6
--- /dev/null
+++ b/crates/shirabe-symfony-console/src/exception/missing_input_exception.rs
@@ -0,0 +1,21 @@
+//! ref: composer/vendor/symfony/console/Exception/MissingInputException.php
+
+use super::exception_interface::ExceptionInterface;
+use super::runtime_exception::RuntimeException;
+
+#[derive(Debug)]
+pub struct MissingInputException(pub RuntimeException);
+
+impl MissingInputException {
+ pub fn new(message: String) -> Self {
+ Self(RuntimeException::new(message))
+ }
+}
+
+shirabe_php_shim::impl_php_exception!(
+ MissingInputException,
+ 0,
+ r"Symfony\Component\Console\Exception\MissingInputException"
+);
+
+impl ExceptionInterface for MissingInputException {}