polytone_evm/handshake/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug, PartialEq, Eq)]
4pub enum HandshakeError {
5    #[error("protocol missmatch, got {actual}, expected {expected}")]
6    ProtocolMismatch { actual: String, expected: String },
7    #[error("channel must be unordered")]
8    ExpectUnordered,
9    #[error("only a note and voice may connect")]
10    WrongCounterparty,
11    #[error("note can say ({0}), but voice can not speak it")]
12    Unspeakable(String),
13}