aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-console/src/exception/logic_exception.rs
blob: 03d9241fb9b97af3a6a2d7255943b6779ebd762a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! ref: composer/vendor/symfony/console/Exception/LogicException.php

use super::exception_interface::ExceptionInterface;

#[derive(Debug)]
pub struct LogicException(pub shirabe_php_shim::LogicException);

impl LogicException {
    pub fn new(message: String) -> Self {
        Self(shirabe_php_shim::LogicException::new(message))
    }
}

shirabe_php_shim::impl_php_exception!(
    LogicException,
    0,
    r"Symfony\Component\Console\Exception\LogicException"
);

impl ExceptionInterface for LogicException {}