aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/exception/invalid_option_exception.rs
blob: 2cc238172e16e8b62d40d29b688352586f52f52d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! ref: composer/vendor/symfony/console/Exception/InvalidOptionException.php

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 {}