pub enum InternalLogicError {
InvalidRegex(InvalidRegexError),
InvalidMetadataForValidRegion(InvalidMetadataForValidRegionError),
}Expand description
Represents critical internal errors that indicate a bug within the library itself. These errors are not expected to be caught or handled by the user, as they signal a problem with the library’s metadata or logic.
Variants§
InvalidRegex(InvalidRegexError)
An error indicating that a regular expression provided in the metadata is invalid. This points to a bug in the library’s bundled metadata files.
InvalidMetadataForValidRegion(InvalidMetadataForValidRegionError)
An error indicating that metadata for a valid, supported region is unexpectedly missing. This points to a bug in the library’s initialization or metadata loading.
Trait Implementations§
Source§impl Debug for InternalLogicError
impl Debug for InternalLogicError
Source§impl Display for InternalLogicError
impl Display for InternalLogicError
Source§impl Error for InternalLogicError
impl Error for InternalLogicError
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<InvalidMetadataForValidRegionError> for InternalLogicError
impl From<InvalidMetadataForValidRegionError> for InternalLogicError
Source§fn from(source: InvalidMetadataForValidRegionError) -> Self
fn from(source: InvalidMetadataForValidRegionError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidRegexError> for InternalLogicError
impl From<InvalidRegexError> for InternalLogicError
Source§fn from(source: InvalidRegexError) -> Self
fn from(source: InvalidRegexError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InternalLogicError
impl PartialEq for InternalLogicError
impl StructuralPartialEq for InternalLogicError
Auto Trait Implementations§
impl Freeze for InternalLogicError
impl RefUnwindSafe for InternalLogicError
impl Send for InternalLogicError
impl Sync for InternalLogicError
impl Unpin for InternalLogicError
impl UnwindSafe for InternalLogicError
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