aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/filesystem/exception/io_exception.rs
blob: 3ffcc9cbcd7deafacf52bcaa1f8cde217a879f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug)]
pub struct IOException {
    pub message: String,
    pub code: i64,
    pub path: Option<String>,
}

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

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