Struct sandkiste::errors::MachineError
source · pub struct MachineError {
pub kind: MachineErrorKind,
pub message: Option<String>,
pub machine_backtrace: Option<String>,
pub message_incl_chunk_name: bool,
pub chunk_name: Option<String>,
pub message_incl_pos: bool,
pub line: Option<usize>,
pub column: Option<usize>,
pub position: Option<usize>,
}
Expand description
Runtime or compiler errors that may refer to a specific position in code
Fields§
§kind: MachineErrorKind
Kind of runtime error
message: Option<String>
Error message
machine_backtrace: Option<String>
Backtrace (multiple lines, without trailing newline)
message_incl_chunk_name: bool
Chunk name already included in message?
chunk_name: Option<String>
Chunk name
message_incl_pos: bool
Position already included in message?
line: Option<usize>
Line number
column: Option<usize>
Column number (in UTF-8 codepoints)
position: Option<usize>
Byte position
Trait Implementations§
source§impl Clone for MachineError
impl Clone for MachineError
source§fn clone(&self) -> MachineError
fn clone(&self) -> MachineError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MachineError
impl Debug for MachineError
source§impl Default for MachineError
impl Default for MachineError
source§fn default() -> MachineError
fn default() -> MachineError
Returns the “default value” for a type. Read more
source§impl Display for MachineError
impl Display for MachineError
source§impl Error for MachineError
impl Error for MachineError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<D> From<DatumConversionFailure<D>> for MachineError
impl<D> From<DatumConversionFailure<D>> for MachineError
source§fn from(failure: DatumConversionFailure<D>) -> Self
fn from(failure: DatumConversionFailure<D>) -> Self
Converts to this type from the input type.
source§impl From<TypeMismatch> for MachineError
impl From<TypeMismatch> for MachineError
source§fn from(datum_err: TypeMismatch) -> Self
fn from(datum_err: TypeMismatch) -> Self
Converts to this type from the input type.