[][src]Enum ommui_data::error::Error

pub enum Error {
    Io {
        source: Error,
        backtrace: Backtrace,
    },
    Serde {
        source: Error,
        backtrace: Backtrace,
    },
    NotFound {
        kind: &'static str,
        id: String,
        backtrace: Backtrace,
    },
    ParseUuid {
        raw: String,
        source: ParseError,
        backtrace: Backtrace,
    },
    Reqwest {
        source: Error,
        backtrace: Backtrace,
    },
    ReadResponse {
        url: String,
        source: Error,
        backtrace: Backtrace,
    },
    ParseInt {
        raw: String,
        source: ParseIntError,
        backtrace: Backtrace,
    },
    OmmuiFileLoading {
        source: Error,
    },
    ProfileParentDifferentSamplingId {
        parent_profile: Uuid,
        parent_sampling_id: String,
        sampling_id: String,
        backtrace: Backtrace,
    },
    ProfileParameterCountMismatchToSampling {
        profile_parameter_count: usize,
        sampling_parameter_count: usize,
        sampling_id: String,
        backtrace: Backtrace,
    },
    SamplingParameterNotFound {
        sampling_id: String,
        parameter_id: String,
        backtrace: Backtrace,
    },
    ProfileNumericParameterValueOutOfRange {
        sampling_id: String,
        parameter_id: String,
        minimum: f64,
        maximum: f64,
        value: f64,
        backtrace: Backtrace,
    },
    ParameterRepresentationNotAllowed {
        parameter_id: String,
        representation: String,
        sampling_id: String,
        allowed_representations: Vec<String>,
        backtrace: Backtrace,
    },
    ResultRepresentationNotAllowed {
        result_id: String,
        representation: String,
        sampling_id: String,
        allowed_representations: Vec<String>,
        backtrace: Backtrace,
    },
    EnumerationValueNotFound {
        parameter_id: String,
        enumeration_value: String,
        sampling_id: String,
        allowed_enumeration_values: Vec<String>,
        backtrace: Backtrace,
    },
    ProfileParameterTypeMismatch {
        parameter_id: String,
        sampling_id: String,
        required: ParameterType,
        found: ParameterType,
        backtrace: Backtrace,
    },
    SamplingResultNotFound {
        sampling_id: String,
        result_id: String,
        backtrace: Backtrace,
    },
    SamplingCurveNotFound {
        sampling_id: String,
        curve_id: String,
        backtrace: Backtrace,
    },
    AxisUnitRepresentationNotAllowed {
        sampling_id: String,
        curve_id: String,
        axis: String,
        representation: String,
        allowed_representations: Vec<String>,
        backtrace: Backtrace,
    },
    CoordinateSystemMismatch {
        sampling_id: String,
        curve_id: String,
        found: CoordinateSystem,
        expected: CoordinateSystem,
        backtrace: Backtrace,
    },
    InvalidFilePath {
        file_path: String,
    },
}

Variants

Io

Fields of Io

source: Errorbacktrace: Backtrace
Serde

Fields of Serde

source: Errorbacktrace: Backtrace
NotFound

Fields of NotFound

kind: &'static strid: Stringbacktrace: Backtrace
ParseUuid

Fields of ParseUuid

raw: Stringsource: ParseErrorbacktrace: Backtrace
Reqwest

Fields of Reqwest

source: Errorbacktrace: Backtrace
ReadResponse

Fields of ReadResponse

url: Stringsource: Errorbacktrace: Backtrace
ParseInt

Fields of ParseInt

raw: Stringsource: ParseIntErrorbacktrace: Backtrace
OmmuiFileLoading

Fields of OmmuiFileLoading

source: Error
ProfileParentDifferentSamplingId

Fields of ProfileParentDifferentSamplingId

parent_profile: Uuidparent_sampling_id: Stringsampling_id: Stringbacktrace: Backtrace
ProfileParameterCountMismatchToSampling

Fields of ProfileParameterCountMismatchToSampling

profile_parameter_count: usizesampling_parameter_count: usizesampling_id: Stringbacktrace: Backtrace
SamplingParameterNotFound

Fields of SamplingParameterNotFound

sampling_id: Stringparameter_id: Stringbacktrace: Backtrace
ProfileNumericParameterValueOutOfRange

Fields of ProfileNumericParameterValueOutOfRange

sampling_id: Stringparameter_id: Stringminimum: f64maximum: f64value: f64backtrace: Backtrace
ParameterRepresentationNotAllowed

Fields of ParameterRepresentationNotAllowed

parameter_id: Stringrepresentation: Stringsampling_id: Stringallowed_representations: Vec<String>backtrace: Backtrace
ResultRepresentationNotAllowed

Fields of ResultRepresentationNotAllowed

result_id: Stringrepresentation: Stringsampling_id: Stringallowed_representations: Vec<String>backtrace: Backtrace
EnumerationValueNotFound

Fields of EnumerationValueNotFound

parameter_id: Stringenumeration_value: Stringsampling_id: Stringallowed_enumeration_values: Vec<String>backtrace: Backtrace
ProfileParameterTypeMismatch

Fields of ProfileParameterTypeMismatch

parameter_id: Stringsampling_id: Stringrequired: ParameterTypefound: ParameterTypebacktrace: Backtrace
SamplingResultNotFound

Fields of SamplingResultNotFound

sampling_id: Stringresult_id: Stringbacktrace: Backtrace
SamplingCurveNotFound

Fields of SamplingCurveNotFound

sampling_id: Stringcurve_id: Stringbacktrace: Backtrace
AxisUnitRepresentationNotAllowed

Fields of AxisUnitRepresentationNotAllowed

sampling_id: Stringcurve_id: Stringaxis: Stringrepresentation: Stringallowed_representations: Vec<String>backtrace: Backtrace
CoordinateSystemMismatch

Fields of CoordinateSystemMismatch

sampling_id: Stringcurve_id: Stringfound: CoordinateSystemexpected: CoordinateSystembacktrace: Backtrace
InvalidFilePath

Fields of InvalidFilePath

file_path: String

Trait Implementations

impl Display for Error[src]

impl Debug for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> AsFail for T where
    T: Fail, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err