pub struct UnhandledErrorException { /* private fields */ }Expand description
The error of a pipeline that broke because nothing handled its error
(UnhandledErrorException): what RxState::default_exception_handler
panics with when an object implementing
IHandleObservableErrors errors and nothing subscribes to
its thrown_exceptions.
Deviation (DEVIATIONS.md, ReactiveUI): the inner exception is kept as its message. The error is
the payload of a panic (std::panic::panic_any), which has to be Send, and the errors of the
reactive libraries (Rc<dyn Error>) are not.
Implementations§
Source§impl UnhandledErrorException
impl UnhandledErrorException
Sourcepub fn new() -> Self
pub fn new() -> Self
The exception with the default message of .NET (UnhandledErrorException()).
Sourcepub fn with_message(message: impl Into<String>) -> Self
pub fn with_message(message: impl Into<String>) -> Self
The exception with message (UnhandledErrorException(string)).
Sourcepub fn with_inner(
message: impl Into<String>,
inner_exception: &dyn Error,
) -> Self
pub fn with_inner( message: impl Into<String>, inner_exception: &dyn Error, ) -> Self
The exception with message, caused by inner_exception
(UnhandledErrorException(string, Exception)).
Sourcepub fn inner_exception(&self) -> Option<&str>
pub fn inner_exception(&self) -> Option<&str>
The message of the error that caused this one (InnerException.Message).
Trait Implementations§
Source§impl Clone for UnhandledErrorException
impl Clone for UnhandledErrorException
Source§impl Debug for UnhandledErrorException
impl Debug for UnhandledErrorException
Source§impl Default for UnhandledErrorException
impl Default for UnhandledErrorException
Source§impl Display for UnhandledErrorException
impl Display for UnhandledErrorException
impl Eq for UnhandledErrorException
Source§impl Error for UnhandledErrorException
impl Error for UnhandledErrorException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()