Struct cyfs_base::BuckyError
source · pub struct BuckyError { /* private fields */ }
Implementations§
source§impl BuckyError
impl BuckyError
pub fn new(code: impl Into<BuckyErrorCode>, msg: impl Into<String>) -> Self
pub fn set_code(&mut self, code: impl Into<BuckyErrorCode>)
pub fn code(&self) -> BuckyErrorCode
pub fn with_code(self, code: impl Into<BuckyErrorCode>) -> Self
pub fn set_msg(&mut self, msg: impl Into<String>)
pub fn msg(&self) -> &str
pub fn with_msg(self, msg: impl Into<String>) -> Self
pub fn origin(&self) -> &Option<BuckyOriginError>
pub fn into_origin(self) -> Option<BuckyOriginError>
pub fn error_with_log<T>(msg: impl Into<String> + Display) -> BuckyResult<T>
Trait Implementations§
source§impl Clone for BuckyError
impl Clone for BuckyError
source§impl Debug for BuckyError
impl Debug for BuckyError
source§impl<'de> Deserialize<'de> for BuckyError
impl<'de> Deserialize<'de> for BuckyError
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
source§impl Display for BuckyError
impl Display for BuckyError
source§impl Error for BuckyError
impl Error for BuckyError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<&str> for BuckyError
impl From<&str> for BuckyError
source§fn from(msg: &str) -> BuckyError
fn from(msg: &str) -> BuckyError
Converts to this type from the input type.
source§impl From<(BuckyErrorCode, &str)> for BuckyError
impl From<(BuckyErrorCode, &str)> for BuckyError
source§fn from(cm: (BuckyErrorCode, &str)) -> BuckyError
fn from(cm: (BuckyErrorCode, &str)) -> BuckyError
Converts to this type from the input type.
source§impl From<(BuckyErrorCode, String)> for BuckyError
impl From<(BuckyErrorCode, String)> for BuckyError
source§fn from(cm: (BuckyErrorCode, String)) -> BuckyError
fn from(cm: (BuckyErrorCode, String)) -> BuckyError
Converts to this type from the input type.
source§impl From<AddrParseError> for BuckyError
impl From<AddrParseError> for BuckyError
source§fn from(err: AddrParseError) -> BuckyError
fn from(err: AddrParseError) -> BuckyError
Converts to this type from the input type.
source§impl From<BuckyError> for Error
impl From<BuckyError> for Error
source§fn from(err: BuckyError) -> Error
fn from(err: BuckyError) -> Error
Converts to this type from the input type.
source§impl From<BuckyErrorCode> for BuckyError
impl From<BuckyErrorCode> for BuckyError
source§fn from(code: BuckyErrorCode) -> BuckyError
fn from(code: BuckyErrorCode) -> BuckyError
Converts to this type from the input type.
source§impl From<CodeError> for BuckyError
impl From<CodeError> for BuckyError
source§impl From<Error> for BuckyError
impl From<Error> for BuckyError
source§fn from(err: Error) -> BuckyError
fn from(err: Error) -> BuckyError
Converts to this type from the input type.
source§impl From<Error> for BuckyError
impl From<Error> for BuckyError
source§fn from(err: Error) -> BuckyError
fn from(err: Error) -> BuckyError
Converts to this type from the input type.
source§impl From<Error> for BuckyError
impl From<Error> for BuckyError
source§impl From<Error> for BuckyError
impl From<Error> for BuckyError
source§fn from(err: Error) -> BuckyError
fn from(err: Error) -> BuckyError
Converts to this type from the input type.
source§impl From<Error> for BuckyError
impl From<Error> for BuckyError
source§impl From<FromHexError> for BuckyError
impl From<FromHexError> for BuckyError
source§fn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for BuckyError
impl From<ParseError> for BuckyError
source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for BuckyError
impl From<ParseFloatError> for BuckyError
source§fn from(err: ParseFloatError) -> BuckyError
fn from(err: ParseFloatError) -> BuckyError
Converts to this type from the input type.
source§impl From<ParseIntError> for BuckyError
impl From<ParseIntError> for BuckyError
source§fn from(err: ParseIntError) -> BuckyError
fn from(err: ParseIntError) -> BuckyError
Converts to this type from the input type.
source§impl From<StatusCode> for BuckyError
impl From<StatusCode> for BuckyError
source§fn from(code: StatusCode) -> Self
fn from(code: StatusCode) -> Self
Converts to this type from the input type.
source§impl From<String> for BuckyError
impl From<String> for BuckyError
source§fn from(msg: String) -> BuckyError
fn from(msg: String) -> BuckyError
Converts to this type from the input type.
source§impl From<StripPrefixError> for BuckyError
impl From<StripPrefixError> for BuckyError
source§fn from(err: StripPrefixError) -> BuckyError
fn from(err: StripPrefixError) -> BuckyError
Converts to this type from the input type.
source§impl From<TimeoutError> for BuckyError
impl From<TimeoutError> for BuckyError
source§fn from(err: TimeoutError) -> BuckyError
fn from(err: TimeoutError) -> BuckyError
Converts to this type from the input type.
source§impl From<Utf8Error> for BuckyError
impl From<Utf8Error> for BuckyError
source§fn from(err: Utf8Error) -> BuckyError
fn from(err: Utf8Error) -> BuckyError
Converts to this type from the input type.
source§impl From<ZipError> for BuckyError
impl From<ZipError> for BuckyError
source§impl From<u32> for BuckyError
impl From<u32> for BuckyError
source§fn from(err: u32) -> BuckyError
fn from(err: u32) -> BuckyError
Converts to this type from the input type.
source§impl Into<BuckyErrorCode> for BuckyError
impl Into<BuckyErrorCode> for BuckyError
source§fn into(self) -> BuckyErrorCode
fn into(self) -> BuckyErrorCode
Converts this type into the (usually inferred) input type.