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

use super::exception_interface::ExceptionInterface;

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

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

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

impl ExceptionInterface for RuntimeException {}