mirror of
https://github.com/romanz/electrs.git
synced 2026-08-16 13:00:30 +02:00
19 lines
421 B
Rust
19 lines
421 B
Rust
use chan_signal::Signal;
|
|
|
|
error_chain!{
|
|
types {
|
|
Error, ErrorKind, ResultExt, Result;
|
|
}
|
|
|
|
errors {
|
|
Connection(msg: String) {
|
|
description("Connection error")
|
|
display("Connection error: {}", msg)
|
|
}
|
|
|
|
Interrupt(signal: Signal) {
|
|
description("Interruption by external signal")
|
|
display("Iterrupted by SIG{:?}", signal)
|
|
}
|
|
}
|
|
}
|