Enum riscan_pro::Error
[−]
pub enum Error { CameraCalibrationVersion(String), ImageFromPath(PathBuf), Io(Error), MissingCameraCalibration(String), MissingChild(String, String), MissingMountCalibration(String), MissingNoderef(Element), NoElementText(Element), ParseFloat(ParseFloatError), ParseInt(ParseIntError), ParseProjective3(String), ProjectPath(PathBuf), ScanPositionFromPath(PathBuf), XmltreeParse(ParseError), }
Our custom error enum.
Variants
CameraCalibrationVersion(String)
The camera calibration version is unsupported.
ImageFromPath(PathBuf)
Given a path and a project, could not find an image.
Io(Error)
Wrapper around std::io::Error
.
MissingCameraCalibration(String)
There is no camera calibration with the given name.
MissingChild(String, String)
A requested xml element child does not exist.
MissingMountCalibration(String)
There is no mount calibration with the given name.
MissingNoderef(Element)
There is no noderef attribute on an element.
NoElementText(Element)
The element does not have any text, when it was required.
ParseFloat(ParseFloatError)
Wrapper around std::num::ParseFloatError
.
ParseInt(ParseIntError)
Wrapper around std::num::ParseFloatError
.
ParseProjective3(String)
Unable to parse text as projective3 matrix.
ProjectPath(PathBuf)
The path is not a valid project path.
Valid project paths either end in .rsp or .RiSCAN.
ScanPositionFromPath(PathBuf)
The scan position could not be found from the provided path.
XmltreeParse(ParseError)
Wrapper around xmltree::ParseError
.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
impl Error for Error
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for Error
impl From<ParseFloatError> for Error
fn from(err: ParseFloatError) -> Error
Performs the conversion.
impl From<ParseIntError> for Error
fn from(err: ParseIntError) -> Error
Performs the conversion.
impl From<ParseError> for Error
fn from(err: ParseError) -> Error
Performs the conversion.