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

#[derive(Debug)]
pub struct RuntimeException {
    pub message: String,
    pub code: i64,
}

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

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