pub enum CoreError {
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
Variants§
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
Source§impl From<CloudError> for CoreError
impl From<CloudError> for CoreError
Source§fn from(err: CloudError) -> Self
fn from(err: CloudError) -> Self
Source§impl From<CoreError> for OperationError
impl From<CoreError> for OperationError
Source§impl From<CrossDeviceError> for CoreError
impl From<CrossDeviceError> for CoreError
Source§fn from(err: CrossDeviceError) -> Self
fn from(err: CrossDeviceError) -> Self
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<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<HardwareCounterError> for CoreError
impl From<HardwareCounterError> for CoreError
Source§fn from(err: HardwareCounterError) -> Self
fn from(err: HardwareCounterError) -> Self
Source§impl From<MLPipelineError> for CoreError
impl From<MLPipelineError> for CoreError
Source§fn from(err: MLPipelineError) -> Self
fn from(err: MLPipelineError) -> Self
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) -> Self
fn from(err: OperationError) -> Self
Source§impl From<OutOfCoreError> for CoreError
impl From<OutOfCoreError> for CoreError
Source§fn from(err: OutOfCoreError) -> Self
fn from(err: OutOfCoreError) -> Self
Source§impl From<ValidationError> for CoreError
Convert ValidationError to CoreError
impl From<ValidationError> for CoreError
Convert ValidationError to CoreError
Source§fn from(err: ValidationError) -> Self
fn from(err: ValidationError) -> Self
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin 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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
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.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.