1
2
3
4
5
6
7
8
9
10
11
12
13
use tea_actorx_core::error::ActorX;
use tea_codec::define_scope;
use thiserror::Error;

define_scope! {
	Runtime: ActorX {
		ArgsTypeMismatch => @ActorX::ArgsTypeMismatch, @Display, @Debug;
	}
}

#[derive(Debug, Error)]
#[error("Args type does not match {0}")]
pub struct ArgsTypeMismatch(pub &'static str);