pub struct RuntimeError {
pub class: ErrorClass,
pub origin: ErrorOrigin,
pub message: String,
}Expand description
RuntimeError Structured runtime error with a stable internal classification. Not a stable API; intended for internal use and may change without notice.
Fields§
§class: ErrorClass§origin: ErrorOrigin§message: StringImplementations§
Source§impl RuntimeError
impl RuntimeError
pub fn new( class: ErrorClass, origin: ErrorOrigin, message: impl Into<String>, ) -> Self
pub fn display_with_class(&self) -> String
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<ExecutorError> for RuntimeError
impl From<ExecutorError> for RuntimeError
Source§fn from(err: ExecutorError) -> Self
fn from(err: ExecutorError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for RuntimeError
impl From<QueryError> for RuntimeError
Source§fn from(err: QueryError) -> Self
fn from(err: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for RuntimeError
impl From<QueryError> for RuntimeError
Source§fn from(err: QueryError) -> Self
fn from(err: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<ResponseError> for RuntimeError
impl From<ResponseError> for RuntimeError
Source§fn from(err: ResponseError) -> Self
fn from(err: ResponseError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for Error
impl From<RuntimeError> for Error
Source§fn from(err: RuntimeError) -> Self
fn from(err: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeError> for RuntimeError
impl From<SerializeError> for RuntimeError
Source§fn from(err: SerializeError) -> Self
fn from(err: SerializeError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for RuntimeError
impl From<StoreError> for RuntimeError
Source§fn from(err: StoreError) -> Self
fn from(err: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<VisitorIssues> for RuntimeError
impl From<VisitorIssues> for RuntimeError
Source§fn from(err: VisitorIssues) -> Self
fn from(err: VisitorIssues) -> 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 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