#[non_exhaustive]pub enum CoreError {
Show 13 variants
StringTooLong {
got: usize,
max: u32,
},
ConstructedValueTooLarge {
got: usize,
max: u32,
},
DecimalPrecisionExceeded {
got: u32,
max: u32,
},
VectorEmpty,
VectorTooLarge {
got: usize,
max: usize,
},
VectorComponentNotFinite {
index: usize,
value: f32,
},
VectorDimensionMismatch {
lhs: usize,
rhs: usize,
},
VectorZeroNorm {
side: &'static str,
},
ZeroIdentifier,
CompactKeyValueLengthMismatch {
keys: usize,
values: usize,
},
OverlappingDiff {
kind: &'static str,
key: DbString,
},
JsonParse {
message: String,
},
JsonPatch {
message: String,
},
}Expand description
Error type for foundation data-model operations.
Codes in the 0Gxxx range are selene-db implementation-defined conditions
reserved for engine-internal validation and registry failures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
StringTooLong
A string or byte-string exceeded the implementation-defined length.
ConstructedValueTooLarge
A list or record exceeded the implementation-defined cardinality.
DecimalPrecisionExceeded
A decimal exceeded the implementation-defined significant-digit precision.
VectorEmpty
A native dense vector was constructed without components.
VectorTooLarge
A native dense vector exceeded the implementation-defined dimension cap.
VectorComponentNotFinite
A native dense vector component was NaN or infinite.
VectorDimensionMismatch
Two native dense vectors had incompatible dimensions for metric work.
VectorZeroNorm
A cosine-distance vector had zero magnitude.
ZeroIdentifier
Identifier value zero is reserved as the tombstone sentinel.
CompactKeyValueLengthMismatch
Compact PropertyMap was constructed with mismatched key and value counts.
OverlappingDiff
A label diff or property diff named the same key in both add/set and remove.
JsonParse
JSON text could not be parsed.
JsonPatch
A JSON Patch document or operation is invalid.
Implementations§
Trait Implementations§
Source§impl Diagnostic for CoreError
impl Diagnostic for CoreError
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Diagnostic.Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic’s Diagnostic::labels to.Source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic’s Diagnostic::source_codeDiagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Error for CoreError
impl Error for CoreError
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()
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.