aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-console/src/exception/missing_input_exception.rs
blob: f9ddc0e64a8cc19cbb253e46ff15582e6cc597e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 {}