Module simics::api::base::sim_exception
source · Expand description
SIMICS exception handling APIs.
These should typically not be used directly, most SIMICS api functions provided by
this crate use the #[simics_exception]
attribute to automatically convert thrown
exceptions into a Result
. This allows more idiomatic error handling
via Result
s.
Functions§
- Clears the currently pending frontend exception and returns the value of it.
- This function returns the exception type of the current pending exception, or SimExc_No_Exception if none available.
- Returns the error message associated with the most recently raised frontend exception, even if that exception has been cleared.
Type Aliases§
- Alias for
sim_exception