@@ -14,7 +14,7 @@ pub struct SerializableErrorRegistration {
1414inventory:: collect!( SerializableErrorRegistration ) ;
1515
1616/// `SerializableError` is a trait which represents an error type that can
17- /// be sent over the wire by the proxy protocol .
17+ /// be sent over the wire.
1818#[ typetag:: serde( tag = "error_type" ) ]
1919pub trait SerializableError : Serialize + std:: error:: Error + std:: fmt:: Debug + Send + Sync {
2020 fn as_anyhow_error ( self : Box < Self > ) -> anyhow:: Error ;
@@ -27,14 +27,14 @@ macro_rules! impl_serializable_error {
2727 ( $t: ty) => {
2828 const _: ( ) = {
2929 #[ typetag:: serde]
30- impl $crate:: proxy :: errors :: SerializableError for $t {
30+ impl $crate:: util :: serializable_error :: SerializableError for $t {
3131 fn as_anyhow_error( self : Box <$t>) -> anyhow:: Error {
3232 self . into( )
3333 }
3434 }
3535
36- $crate:: proxy :: errors :: submit! {
37- $crate:: proxy :: errors :: SerializableErrorRegistration {
36+ $crate:: util :: serializable_error :: submit! {
37+ $crate:: util :: serializable_error :: SerializableErrorRegistration {
3838 try_convert: |err| {
3939 if !err. is:: <$t>( ) {
4040 return Err ( err) ;
@@ -43,7 +43,7 @@ macro_rules! impl_serializable_error {
4343 let description = err. to_string( ) ;
4444 let backtrace = format!( "{:#?}" , err. backtrace( ) ) ;
4545 let downcast = err. downcast:: <$t>( ) . unwrap( ) ;
46- Ok ( $crate:: proxy :: errors :: SerializedError {
46+ Ok ( $crate:: util :: serializable_error :: SerializedError {
4747 description,
4848 backtrace,
4949 error: Some ( Box :: new( downcast) ) ,
@@ -55,7 +55,7 @@ macro_rules! impl_serializable_error {
5555 } ;
5656}
5757
58- /// `SerializedError` is the wire form of errors that can be sent through the proxy .
58+ /// `SerializedError` is the wire form of errors that can be sent through network .
5959#[ derive( serde:: Serialize , serde:: Deserialize , Debug ) ]
6060pub struct SerializedError {
6161 pub description : String ,
0 commit comments