1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use crate::core::ics24_host::identifier::PortId;
use flex_error::define_error;

define_error! {
    #[derive(Debug, PartialEq)]
    Error {
        UnknownPort
            { port_id: PortId }
            | e | { format_args!("Port {0} is unknown", e.port_id) },

        ImplementationSpecific
            | _ | { "implementation specific error" },
    }
}