blob: c9a346611bc6854b7ee6826ef432654352b80ce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//! ref: composer/vendor/symfony/process/Exception/LogicException.php
#[derive(Debug)]
pub struct LogicException {
pub message: String,
pub code: i64,
}
impl LogicException {
pub fn new(message: String) -> Self {
Self { message, code: 0 }
}
}
impl std::fmt::Display for LogicException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.message)
}
}
impl std::error::Error for LogicException {}
|