pub struct InternalError {
pub class: ErrorClass,
pub origin: ErrorOrigin,
pub message: String,
}Expand description
InternalError 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 InternalError
impl InternalError
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 InternalError
impl Debug for InternalError
Source§impl Display for InternalError
impl Display for InternalError
Source§impl Error for InternalError
impl Error for InternalError
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 InternalError
impl From<ExecutorError> for InternalError
Source§fn from(err: ExecutorError) -> Self
fn from(err: ExecutorError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for InternalError
impl From<QueryError> for InternalError
Source§fn from(err: QueryError) -> Self
fn from(err: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for InternalError
impl From<QueryError> for InternalError
Source§fn from(err: QueryError) -> Self
fn from(err: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<ResponseError> for InternalError
impl From<ResponseError> for InternalError
Source§fn from(err: ResponseError) -> Self
fn from(err: ResponseError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeError> for InternalError
impl From<SerializeError> for InternalError
Source§fn from(err: SerializeError) -> Self
fn from(err: SerializeError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for InternalError
impl From<StoreError> for InternalError
Source§fn from(err: StoreError) -> Self
fn from(err: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<VisitorError> for InternalError
impl From<VisitorError> for InternalError
Source§fn from(err: VisitorError) -> Self
fn from(err: VisitorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InternalError
impl RefUnwindSafe for InternalError
impl Send for InternalError
impl Sync for InternalError
impl Unpin for InternalError
impl UnwindSafe for InternalError
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