aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/exception/invalid_option_exception.rs
blob: b4c0cd8680fa7f42c1b3ba1da75143649cbc7a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::exception_interface::ExceptionInterface;
use super::invalid_argument_exception::InvalidArgumentException;

#[derive(Debug)]
pub struct InvalidOptionException(pub InvalidArgumentException);

impl std::fmt::Display for InvalidOptionException {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.0)
    }
}

impl std::error::Error for InvalidOptionException {}

impl ExceptionInterface for InvalidOptionException {}