myutil
A simple and friendly error-chain
, with many useful utils as an addition.
The painful experience of using error-chain
gave birth to this project. It can adapt to almost all scenes without any special implementation.
Usage
Tips: you can easily implement your own
Error
.
use ;
OutPut Sample
000000 [pidns: NULL][pid: 46574] 2020-09-06 18:18:32
Error:
├── file: src/lib.rs
└── line: 318
Caused By:
├── file: src/lib.rs
└── line: 316
Caused By:
├── file: src/lib.rs
└── line: 314
Caused By:
├── file: src/lib.rs
└── line: 312
Caused By: Some error occur!
├── file: src/lib.rs
└── line: 310