b3_utils 0.13.1

Utility functions for building on the Internet Computer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug)]
pub enum InterCallError {
    SerializationError(String, String),
    CallError(String, String),
}

#[rustfmt::skip]
impl std::fmt::Display for InterCallError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            InterCallError::SerializationError(method, msg) => 
                write!(f, "Error serializing arguments for method {}: {}", method, msg),
            InterCallError::CallError(method, msg) => 
                write!(f, "Error calling method {} : {}", method, msg),
        }
    }
}