visdom/mesdoc/error.rs
1use thiserror::Error;
2pub type BoxDynError = Box<dyn std::error::Error + Send + Sync + 'static>;
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("Invalid selector:'{context}'<{reason}>")]
6 InvalidSelector { context: String, reason: String },
7 #[error("Call method '{method}' with {error}")]
8 MethodOnInvalidSelector { method: String, error: String },
9 #[error("Call method '{method}' cause an error: {message}")]
10 InvalidTraitMethodCall { method: String, message: String },
11}