pub enum Error {
Show 22 variants
ExtensionNotAllowed(String, String),
ImageError(ImageError),
ParseFloat(ParseFloatError),
ParseInt(ParseIntError),
CharacterError(String),
BoundaryError(String),
NotFound(&'static str),
NullCString(NulError),
Matrix(&'static str),
Parse(&'static str),
Integration(String),
Io(Error),
MeshParse(String),
FloatConversion,
Custom(String),
PieceWiseDims,
Unimplemented,
Infallible,
WrongDims,
Overflow,
Receiver(RecvError),
Writing,
}
Expand description
General Information
Error enum to use on all functions. Contains personalized errors with a corresponding explanation
Arms
ExtensionNotAllowed
- Files like shaders, meshes or font maps need a specific extension. When the extension is not appropiate, this error is thrownImageError
- Errors related to image reading and parsingParseFloat
- Error while parsing a floatParseInt
- Error while parsing an intCharacterError
- Error while creating the character set for the windowNotFound
- Error while looking for filesNullCString
- Error while converting to c-typesMatrix
- Errors ocurring while using matricesParse
- Error while interpreting filesIntegration
- Error on numeric integrationIo
- Error on IO operationsMeshParse
- Error while parsing a meshFloatConversion
- Error on float conversion betweeen f64 and f32Custom
- Less common errorsPieceWiseDims
- Error while creating a piecewise functionUnimplemented
- Error that should not existInfallible
- Error that never happensWrongDims
- Error while operating on vectors and matricesOverflow
- Error when a number overflowsReceiver
- Error on communication between threadsWriting
- Error while writing to file values of equation
Variants§
ExtensionNotAllowed(String, String)
ImageError(ImageError)
ParseFloat(ParseFloatError)
ParseInt(ParseIntError)
CharacterError(String)
BoundaryError(String)
NotFound(&'static str)
NullCString(NulError)
Matrix(&'static str)
Parse(&'static str)
Integration(String)
Io(Error)
MeshParse(String)
FloatConversion
Custom(String)
PieceWiseDims
Unimplemented
Infallible
WrongDims
Overflow
Receiver(RecvError)
Writing
Implementations§
Trait Implementations§
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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.