1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::error;
use std::fmt;

/// An error constructing an object path.
#[derive(Debug)]
#[non_exhaustive]
pub struct ObjectPathError;

impl fmt::Display for ObjectPathError {
    #[inline]
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "Invalid D-Bus object path")
    }
}

impl error::Error for ObjectPathError {}