pub enum RuntimeError {
ArithmeticError(RuntimeErrorStruct),
NewAtomicFactError(RuntimeErrorStruct),
StoreFactError(RuntimeErrorStruct),
ParseError(RuntimeErrorStruct),
ExecStmtError(RuntimeErrorStruct),
WellDefinedError(RuntimeErrorStruct),
VerifyError(RuntimeErrorStruct),
UnknownError(RuntimeErrorStruct),
InferError(RuntimeErrorStruct),
NameAlreadyUsedError(RuntimeErrorStruct),
DefineParamsError(RuntimeErrorStruct),
InstantiateError(RuntimeErrorStruct),
}Variants§
ArithmeticError(RuntimeErrorStruct)
NewAtomicFactError(RuntimeErrorStruct)
StoreFactError(RuntimeErrorStruct)
ParseError(RuntimeErrorStruct)
ExecStmtError(RuntimeErrorStruct)
WellDefinedError(RuntimeErrorStruct)
VerifyError(RuntimeErrorStruct)
UnknownError(RuntimeErrorStruct)
InferError(RuntimeErrorStruct)
NameAlreadyUsedError(RuntimeErrorStruct)
DefineParamsError(RuntimeErrorStruct)
InstantiateError(RuntimeErrorStruct)
Implementations§
Source§impl RuntimeError
impl RuntimeError
pub fn into_struct(self) -> RuntimeErrorStruct
pub fn line_file(&self) -> LineFile
pub fn display_label(&self) -> &'static str
pub fn message_text_for_duplicate_used_name_without_line_file( name: &str, ) -> String
pub fn new_infer_error_with_msg_position_previous_error( msg: String, line_file: LineFile, previous_error: Option<RuntimeError>, ) -> Self
pub fn new_define_params_error_with_msg_previous_error_position( msg: String, previous_error: Option<RuntimeError>, line_file: LineFile, ) -> Self
pub fn new_parse_error_with_msg_position_previous_error( msg: String, line_file: LineFile, previous_error: Option<RuntimeError>, ) -> Self
pub fn new_parse_error_for_block_unexpected_indent_at_line_file( line_file: LineFile, ) -> Self
pub fn new_parse_error_for_block_expected_indent_at_line_file( line_file: LineFile, ) -> Self
pub fn new_parse_error_for_block_missing_body_at_line_file( line_file: LineFile, ) -> Self
pub fn new_parse_error_for_block_inconsistent_indent_at_line_file( line_file: LineFile, ) -> Self
pub fn new_verify_error_with_fact_msg_position_previous_error( fact: Fact, msg: String, line_file: LineFile, previous_error: Option<RuntimeError>, ) -> Self
pub fn new_verify_error_with_msg_position_previous_error( msg: String, line_file: LineFile, previous_error: Option<RuntimeError>, ) -> Self
pub fn new_unknown_error_with_msg_position_optional_fact_previous_error( msg: String, line_file: LineFile, fact: Option<Fact>, previous_error: Option<RuntimeError>, ) -> Self
pub fn new_verify_result_unknown_with_fact_previous_error( fact: Fact, msg: String, previous_error: Option<RuntimeError>, ) -> Self
pub fn new_well_defined_error_with_msg_previous_error_position( msg: String, previous_error: Option<RuntimeError>, line_file: LineFile, ) -> Self
pub fn new_well_defined_error_wrapping_verify_runtime_error( e: RuntimeError, ) -> RuntimeError
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<ArithmeticRuntimeError> for RuntimeError
impl From<ArithmeticRuntimeError> for RuntimeError
Source§fn from(w: ArithmeticRuntimeError) -> Self
fn from(w: ArithmeticRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<DefineParamsRuntimeError> for RuntimeError
impl From<DefineParamsRuntimeError> for RuntimeError
Source§fn from(w: DefineParamsRuntimeError) -> Self
fn from(w: DefineParamsRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<InferRuntimeError> for RuntimeError
impl From<InferRuntimeError> for RuntimeError
Source§fn from(w: InferRuntimeError) -> Self
fn from(w: InferRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<InstantiateRuntimeError> for RuntimeError
impl From<InstantiateRuntimeError> for RuntimeError
Source§fn from(w: InstantiateRuntimeError) -> Self
fn from(w: InstantiateRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<NameAlreadyUsedRuntimeError> for RuntimeError
impl From<NameAlreadyUsedRuntimeError> for RuntimeError
Source§fn from(w: NameAlreadyUsedRuntimeError) -> Self
fn from(w: NameAlreadyUsedRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<NewAtomicFactRuntimeError> for RuntimeError
impl From<NewAtomicFactRuntimeError> for RuntimeError
Source§fn from(w: NewAtomicFactRuntimeError) -> Self
fn from(w: NewAtomicFactRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseRuntimeError> for RuntimeError
impl From<ParseRuntimeError> for RuntimeError
Source§fn from(w: ParseRuntimeError) -> Self
fn from(w: ParseRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeErrorStruct> for RuntimeError
impl From<RuntimeErrorStruct> for RuntimeError
Source§fn from(runtime_error_struct: RuntimeErrorStruct) -> Self
fn from(runtime_error_struct: RuntimeErrorStruct) -> Self
Converts to this type from the input type.
Source§impl From<StoreFactRuntimeError> for RuntimeError
impl From<StoreFactRuntimeError> for RuntimeError
Source§fn from(w: StoreFactRuntimeError) -> Self
fn from(w: StoreFactRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<UnknownRuntimeError> for RuntimeError
impl From<UnknownRuntimeError> for RuntimeError
Source§fn from(w: UnknownRuntimeError) -> Self
fn from(w: UnknownRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<VerifyRuntimeError> for RuntimeError
impl From<VerifyRuntimeError> for RuntimeError
Source§fn from(w: VerifyRuntimeError) -> Self
fn from(w: VerifyRuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<WellDefinedRuntimeError> for RuntimeError
impl From<WellDefinedRuntimeError> for RuntimeError
Source§fn from(w: WellDefinedRuntimeError) -> Self
fn from(w: WellDefinedRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl !Send for RuntimeError
impl !Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more