Struct tramex_tools::errors::TramexError
source · pub struct TramexError {
pub message: String,
pub debug: String,
/* private fields */
}
Expand description
Error structure for Tramex Tools
Fields§
§message: String
Error message (human readable)
debug: String
Debug information
Implementations§
source§impl TramexError
impl TramexError
sourcepub fn new_with_line(message: String, code: ErrorCode, debug: String) -> Self
pub fn new_with_line(message: String, code: ErrorCode, debug: String) -> Self
Create a new error
sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if the error is recoverable
Trait Implementations§
source§impl Clone for TramexError
impl Clone for TramexError
source§fn clone(&self) -> TramexError
fn clone(&self) -> TramexError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TramexError
impl Debug for TramexError
source§impl Default for TramexError
impl Default for TramexError
source§fn default() -> TramexError
fn default() -> TramexError
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TramexError
impl<'de> Deserialize<'de> for TramexError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TramexError
impl Send for TramexError
impl Sync for TramexError
impl Unpin for TramexError
impl UnwindSafe for TramexError
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