pub enum FixerError {
Reject(MessageRejectErrorEnum),
Simple(SimpleError),
ConditionallyRequiredSetting(ConditionallyRequiredSetting),
IncorrectFormatForSetting(IncorrectFormatForSetting),
Parse(ParseError),
}Expand description
Top-level error type for the fixer engine.
Wraps all error kinds that can occur during session operation: message-level rejects, configuration errors, and parse failures.
Variants§
Reject(MessageRejectErrorEnum)
Simple(SimpleError)
ConditionallyRequiredSetting(ConditionallyRequiredSetting)
IncorrectFormatForSetting(IncorrectFormatForSetting)
Parse(ParseError)
Implementations§
Source§impl FixerError
impl FixerError
Sourcepub fn new_conditionally_required(setting: &str) -> Self
pub fn new_conditionally_required(setting: &str) -> Self
Creates a ConditionallyRequiredSetting error for the given key.
Sourcepub fn new_incorrect_format_for_setting(setting: &str, string_val: &str) -> Self
pub fn new_incorrect_format_for_setting(setting: &str, string_val: &str) -> Self
Creates an IncorrectFormatForSetting error with a generic message.
Sourcepub fn new_incorrect_format_for_setting_with_error(
setting: &str,
string_val: &str,
err: Box<dyn Error + Send + Sync>,
) -> Self
pub fn new_incorrect_format_for_setting_with_error( setting: &str, string_val: &str, err: Box<dyn Error + Send + Sync>, ) -> Self
Creates an IncorrectFormatForSetting error wrapping a specific
cause.
Trait Implementations§
Source§impl Debug for FixerError
impl Debug for FixerError
Source§impl Display for FixerError
impl Display for FixerError
Source§impl Error for FixerError
impl Error for FixerError
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<ConditionallyRequiredSetting> for FixerError
impl From<ConditionallyRequiredSetting> for FixerError
Source§fn from(source: ConditionallyRequiredSetting) -> Self
fn from(source: ConditionallyRequiredSetting) -> Self
Converts to this type from the input type.
Source§impl From<FixerError> for SimpleError
impl From<FixerError> for SimpleError
Source§fn from(err: FixerError) -> SimpleError
fn from(err: FixerError) -> SimpleError
Converts to this type from the input type.
Source§impl From<IncorrectFormatForSetting> for FixerError
impl From<IncorrectFormatForSetting> for FixerError
Source§fn from(source: IncorrectFormatForSetting) -> Self
fn from(source: IncorrectFormatForSetting) -> Self
Converts to this type from the input type.
Source§impl From<MessageRejectErrorEnum> for FixerError
impl From<MessageRejectErrorEnum> for FixerError
Source§fn from(source: MessageRejectErrorEnum) -> Self
fn from(source: MessageRejectErrorEnum) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for FixerError
impl From<ParseError> for FixerError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<SimpleError> for FixerError
impl From<SimpleError> for FixerError
Source§fn from(source: SimpleError) -> Self
fn from(source: SimpleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FixerError
impl !UnwindSafe for FixerError
impl Freeze for FixerError
impl Send for FixerError
impl Sync for FixerError
impl Unpin for FixerError
impl UnsafeUnpin for FixerError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more