blob: e666e9ead220f8b27eb2a0f1361fc0077e7082c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//! ref: composer/vendor/symfony/filesystem/Exception/IOException.php
#[derive(Debug)]
pub struct IOException {
pub message: String,
pub code: i64,
pub path: Option<String>,
}
impl IOException {
pub fn new(
message: String,
code: i64,
_previous: Option<Box<dyn std::error::Error + Send + Sync>>,
path: Option<String>,
) -> Self {
Self {
message,
code,
path,
}
}
}
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 {}
|