#[non_exhaustive]pub enum Error {
Unsupported {
engine: &'static str,
collation: String,
reason: &'static str,
},
VersionMismatch {
source: VersionId,
local: VersionId,
},
FeatureDisabled {
feature: &'static str,
},
InputLimit {
engine: &'static str,
reason: &'static str,
},
}Expand description
Errors produced when building or using a collation.
The dominant variant is Error::Unsupported: this crate refuses to guess.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unsupported
The configuration is not one this crate models exactly.
The caller must fall back to comparing on the source database.
Fields
VersionMismatch
The supplied version metadata does not match the local collation data.
Falling back to the source database is the correct response.
Fields
FeatureDisabled
The configuration was recognised but a required backend feature is disabled at compile time.
InputLimit
The collation is modelled, but a specific input exceeds a documented limit of the source backend, so the comparison cannot be reproduced exactly (e.g. Oracle truncates its UCA sort key past 2000 bytes).
Unlike Error::Unsupported, the configuration itself is supported;
only this input must fall back to comparing on the source. This is a
per-input outcome, not a construction failure.
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()