radix_clis/scrypto/
error.rs1use crate::scrypto::*;
2use crate::utils::*;
3use std::fmt;
4use std::io;
5
6#[derive(Debug)]
7pub enum Error {
8 IOError(io::Error),
9
10 BuildError(BuildError),
11
12 TestError(TestError),
13
14 FormatError(FormatError),
15
16 PackageAlreadyExists,
17
18 CoverageError(CoverageError),
19}
20
21impl fmt::Display for Error {
22 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24 write!(f, "{:?}", self)
25 }
26}
27
28impl From<Error> for String {
29 fn from(err: Error) -> String {
30 err.to_string()
31 }
32}