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