potatonet-common 0.4.3

PotatoNet is a lightweight microservices framework.
Documentation
use crate::NodeId;

/// 错误
#[derive(Error, Debug)]
pub enum Error {
    #[error("method '{method}' not found")]
    MethodNotFound { method: u32 },

    #[error("service '{service_name}' not found")]
    ServiceNotFound { service_name: String },

    #[error("node '{id}' not exists")]
    NodeNotExists { id: NodeId },

    #[error("timeout")]
    Timeout,

    #[error("internal")]
    Internal,
}