1use thiserror::Error;
4
5#[derive(Error, Debug)]
7pub enum FFTError {
8 #[error("Computation error: {0}")]
10 ComputationError(String),
11
12 #[error("Dimension mismatch error: {0}")]
14 DimensionError(String),
15
16 #[error("Value error: {0}")]
18 ValueError(String),
19
20 #[error("Not implemented: {0}")]
22 NotImplementedError(String),
23
24 #[error("I/O error: {0}")]
26 IOError(String),
27
28 #[error("Backend error: {0}")]
30 BackendError(String),
31
32 #[error("Plan creation error: {0}")]
34 PlanError(String),
35
36 #[error("Communication error: {0}")]
38 CommunicationError(String),
39
40 #[error("Memory error: {0}")]
42 MemoryError(String),
43
44 #[error("Internal error: {0}")]
46 InternalError(String),
47}
48
49pub type FFTResult<T> = Result<T, FFTError>;