1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use error_chain::error_chain;
error_chain! {
    links {
        UvmError(uvm_core::error::UvmError, uvm_core::error::UvmErrorKind);
        UvmInstallCoreError(uvm_install_core::error::Error, uvm_install_core::error::ErrorKind);
    }

    foreign_links {
        Fmt(::std::fmt::Error);
        Io(::std::io::Error);
    }

    errors {
        UnsupportedModuleError(c: String, v:String) {
            description("unsupported unity module for unity version"),
            display("unsupported module: '{}' for selected unity version {}", c, v),
        }
    }
}