blob: 20870dca8eef2b248e9f70a1c8c12ab1828c6e59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use super::exception_interface::ExceptionInterface;
#[derive(Debug)]
pub struct LogicException(pub shirabe_php_shim::LogicException);
impl std::fmt::Display for LogicException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
impl std::error::Error for LogicException {}
impl ExceptionInterface for LogicException {}
|