Enum ketos::error::Error
[−]
[src]
pub enum Error { CompileError(CompileError), DecodeError(DecodeError), EncodeError(EncodeError), ExecError(ExecError), IoError(IoError), ParseError(ParseError), RestrictError(RestrictError), Custom(Box<StdError>), }
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
Custom(Box<StdError>)
Customized error value implementing std::error::Error
Methods
impl Error
[src]
fn custom<E: 'static + StdError>(e: E) -> Error
Returns an Error
value wrapping a custom error type.
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 NameDisplay for Error
[src]
fn fmt(&self, names: &NameStore, f: &mut Formatter) -> Result
Writes the value's display representation to the formatter stream.
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.