Enum ketos::error::Error
[−]
[src]
pub enum Error {
CompileError(CompileError),
DecodeError(DecodeError),
EncodeError(EncodeError),
ExecError(ExecError),
IoError(IoError),
ParseError(ParseError),
RestrictError(RestrictError),
}Consolidated error type; contains one of a category of errors.
Variants
CompileError(CompileError)Error in compiling code to bytecode
DecodeError(DecodeError)Error in decoding bytecode file format
EncodeError(EncodeError)Error in encoding bytecode file format
ExecError(ExecError)Error in executing code
IoError(IoError)Error in file I/O operation
ParseError(ParseError)Error in scanning text or parsing syntax
RestrictError(RestrictError)Code execution breached configured restrictions
Methods
impl Error[src]
fn description(&self) -> &'static str
Returns a string describing the nature of the error.
Trait Implementations
impl Debug for Error[src]
impl Display for Error[src]
impl From<CompileError> for Error[src]
fn from(e: CompileError) -> Error
Performs the conversion.
impl From<DecodeError> for Error[src]
fn from(e: DecodeError) -> Error
Performs the conversion.
impl From<EncodeError> for Error[src]
fn from(e: EncodeError) -> Error
Performs the conversion.
impl From<ExecError> for Error[src]
impl From<IoError> for Error[src]
impl From<ParseError> for Error[src]
fn from(e: ParseError) -> Error
Performs the conversion.
impl From<RestrictError> for Error[src]
fn from(e: RestrictError) -> Error
Performs the conversion.