classfmt/
error.rs

1use std::str::Utf8Error;
2
3#[derive(Debug)]
4pub enum ErrorType {
5    ParseError,
6    InvalidNameIndex,
7    Utf8Error(Utf8Error),
8    IntegerConversion
9}
10
11impl From<Utf8Error> for ErrorType {
12    fn from(e: Utf8Error) -> Self {
13        Self::Utf8Error(e)
14    }
15}