tokio_dbus/object_path/object_path_error.rs
1use core::fmt;
2
3/// An error constructing an object path.
4#[derive(Debug)]
5#[non_exhaustive]
6pub struct ObjectPathError;
7
8impl fmt::Display for ObjectPathError {
9 #[inline]
10 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
11 write!(f, "Invalid D-Bus object path")
12 }
13}
14
15impl core::error::Error for ObjectPathError {}