Enum riscan_pro::Error []

pub enum Error {
    CameraCalibrationVersion(String),
    ImageFromPath(PathBuf),
    Io(Error),
    MissingCameraCalibration(String),
    MissingChild(StringString),
    MissingMountCalibration(String),
    MissingNoderef(Element),
    NoElementText(Element),
    ParseFloat(ParseFloatError),
    ParseInt(ParseIntError),
    ParseProjective3(String),
    ProjectPath(PathBuf),
    ScanPositionFromPath(PathBuf),
    XmltreeParse(ParseError),
}

Our custom error enum.

Variants

The camera calibration version is unsupported.

Given a path and a project, could not find an image.

Wrapper around std::io::Error.

There is no camera calibration with the given name.

A requested xml element child does not exist.

There is no mount calibration with the given name.

There is no noderef attribute on an element.

The element does not have any text, when it was required.

Wrapper around std::num::ParseFloatError.

Wrapper around std::num::ParseFloatError.

Unable to parse text as projective3 matrix.

The path is not a valid project path.

Valid project paths either end in .rsp or .RiSCAN.

The scan position could not be found from the provided path.

Wrapper around xmltree::ParseError.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error

Performs the conversion.

impl From<ParseFloatError> for Error

Performs the conversion.

impl From<ParseIntError> for Error

Performs the conversion.

impl From<ParseError> for Error

Performs the conversion.