summaryrefslogtreecommitdiffstats
path: root/third_party/rust/audioipc2/src/errors.rs
blob: f4f3e32f5fd6fcb5e144faa3812f7b79d20f7a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright © 2017 Mozilla Foundation
//
// This program is made available under an ISC-style license.  See the
// accompanying file LICENSE for details.

error_chain! {
    // Maybe replace with chain_err to improve the error info.
    foreign_links {
        Bincode(bincode::Error);
        Io(std::io::Error);
        Cubeb(cubeb::Error);
    }

    // Replace bail!(str) with explicit errors.
    errors {
        Disconnected
    }
}