1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::string::FromUtf8Error;

use thiserror::Error as ThisError;

#[derive(Debug, ThisError)]
pub enum Error {
    #[error("Failed to map {0} to any rust type")]
    FailedToMapScillaTypeToRust(String),

    #[error(transparent)]
    IoError(#[from] std::io::Error),

    #[error(transparent)]
    LexprParseError(#[from] lexpr::parse::Error),

    #[error(transparent)]
    FromUtf8Error(#[from] FromUtf8Error),
}