1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use errno;
use fmt;
/// Error information about the attempted TIPC operation
/// # Example
/// ```
/// # use errno::{Errno, set_errno};
/// # use tipc::TipcError;
/// set_errno(Errno(113));
///
/// let e = TipcError::new("My error message");
/// assert_eq!(e.code(), 113);
/// assert_eq!(e.description(), "My error message: No route to host");
///```