#[non_exhaustive]pub enum OptimError {
Show 34 variants
ComputationError(ErrorContext),
DomainError(ErrorContext),
DispatchError(ErrorContext),
ConvergenceError(ErrorContext),
DimensionError(ErrorContext),
ShapeError(ErrorContext),
IndexError(ErrorContext),
ValueError(ErrorContext),
TypeError(ErrorContext),
NotImplementedError(ErrorContext),
ImplementationError(ErrorContext),
MemoryError(ErrorContext),
AllocationError(ErrorContext),
ConfigError(ErrorContext),
InvalidArgument(ErrorContext),
InvalidInput(ErrorContext),
PermissionError(ErrorContext),
ValidationError(ErrorContext),
InvalidState(ErrorContext),
JITError(ErrorContext),
JSONError(ErrorContext),
IoError(ErrorContext),
SchedulerError(ErrorContext),
TimeoutError(ErrorContext),
CompressionError(ErrorContext),
InvalidShape(ErrorContext),
DeviceError(ErrorContext),
MutexError(ErrorContext),
ThreadError(ErrorContext),
StreamError(ErrorContext),
EndOfStream(ErrorContext),
ResourceError(ErrorContext),
CommunicationError(ErrorContext),
SecurityError(ErrorContext),
}Expand description
Core error type for SciRS2
This enum is #[non_exhaustive]: downstream crates must include a wildcard
_ arm when matching on it, so that adding new variants here is not a
breaking change. The core_error_non_exhaustive compile-fail test in
scirs2-stability-tests guards this contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ComputationError(ErrorContext)
Computation error (generic error)
DomainError(ErrorContext)
Domain error (input outside valid domain)
DispatchError(ErrorContext)
Dispatch error (array protocol dispatch failed)
ConvergenceError(ErrorContext)
Convergence error (algorithm did not converge)
DimensionError(ErrorContext)
Dimension mismatch error
ShapeError(ErrorContext)
Shape error (matrices/arrays have incompatible shapes)
IndexError(ErrorContext)
Out of bounds error
ValueError(ErrorContext)
Value error (invalid value)
TypeError(ErrorContext)
Type error (invalid type)
NotImplementedError(ErrorContext)
Not implemented error
ImplementationError(ErrorContext)
Implementation error (method exists but not fully implemented yet)
MemoryError(ErrorContext)
Memory error (could not allocate memory)
AllocationError(ErrorContext)
Allocation error (memory allocation failed)
ConfigError(ErrorContext)
Configuration error (invalid configuration)
InvalidArgument(ErrorContext)
Invalid argument error
InvalidInput(ErrorContext)
Invalid input error
PermissionError(ErrorContext)
Permission error (insufficient permissions)
ValidationError(ErrorContext)
Validation error (input failed validation)
InvalidState(ErrorContext)
Invalid state error (object is in an invalid state)
JITError(ErrorContext)
JIT compilation error (error during JIT compilation)
JSONError(ErrorContext)
JSON error
IoError(ErrorContext)
IO error
SchedulerError(ErrorContext)
Scheduler error (error in work-stealing scheduler)
TimeoutError(ErrorContext)
Timeout error (operation timed out)
CompressionError(ErrorContext)
Compression error (error during compression/decompression)
InvalidShape(ErrorContext)
Invalid shape error (array shape is invalid)
DeviceError(ErrorContext)
Device error (GPU/hardware device error)
MutexError(ErrorContext)
Mutex error (mutex poisoning or lock error)
ThreadError(ErrorContext)
Thread error (threading error)
StreamError(ErrorContext)
Stream error (streaming operation error)
EndOfStream(ErrorContext)
End of stream error (stream ended unexpectedly)
ResourceError(ErrorContext)
Resource error (insufficient or unavailable resources)
CommunicationError(ErrorContext)
Communication error (network or inter-process communication error)
SecurityError(ErrorContext)
Security error (authentication, authorization, or security-related error)
Implementations§
Trait Implementations§
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()
Source§impl From<ConversionError> for CoreError
impl From<ConversionError> for CoreError
Source§fn from(err: ConversionError) -> CoreError
fn from(err: ConversionError) -> CoreError
Source§impl From<CoreError> for TpuError
impl From<CoreError> for TpuError
Source§fn from(source: OptimError) -> Self
fn from(source: OptimError) -> Self
Source§impl From<CoreError> for ClockSynchronizationError
impl From<CoreError> for ClockSynchronizationError
Source§impl From<DistributedError> for CoreError
impl From<DistributedError> for CoreError
Source§fn from(err: DistributedError) -> CoreError
fn from(err: DistributedError) -> CoreError
Source§impl From<Error> for CoreError
Available on crate feature serialization only.Convert from serde_json::Error to CoreError
impl From<Error> for CoreError
serialization only.Convert from serde_json::Error to CoreError
Source§impl From<FromUtf8Error> for CoreError
impl From<FromUtf8Error> for CoreError
Source§fn from(err: FromUtf8Error) -> CoreError
fn from(err: FromUtf8Error) -> CoreError
Source§impl From<GpuError> for CoreError
Convert GPU errors to core errors with semantic preservation
impl From<GpuError> for CoreError
Convert GPU errors to core errors with semantic preservation
Source§impl From<OperationError> for CoreError
Convert from OperationError to CoreError
impl From<OperationError> for CoreError
Convert from OperationError to CoreError
Source§fn from(err: OperationError) -> CoreError
fn from(err: OperationError) -> CoreError
Source§impl From<ParseFloatError> for CoreError
impl From<ParseFloatError> for CoreError
Source§fn from(err: ParseFloatError) -> CoreError
fn from(err: ParseFloatError) -> CoreError
Source§impl From<ParseIntError> for CoreError
impl From<ParseIntError> for CoreError
Source§fn from(err: ParseIntError) -> CoreError
fn from(err: ParseIntError) -> CoreError
Source§impl<T> From<PoisonError<T>> for CoreError
impl<T> From<PoisonError<T>> for CoreError
Source§fn from(err: PoisonError<T>) -> CoreError
fn from(err: PoisonError<T>) -> CoreError
Source§impl From<SystemTimeError> for CoreError
impl From<SystemTimeError> for CoreError
Source§fn from(err: SystemTimeError) -> CoreError
fn from(err: SystemTimeError) -> CoreError
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> 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.