ExpErrors

Type Alias ExpErrors 

Source
pub type ExpErrors<RawScalar> = FunctionErrors<ExpInputErrors<RawScalar>, <RawScalar as RawScalarTrait>::ValidationErrors>;
Expand description

Errors that can occur during the computation of the exponential of a real or complex number.

This type represents the possible failures when calling Exp::try_exp(). It is generic over RawScalar: RawScalarTrait. This type alias wraps FunctionErrors, where the input error source is ExpInputErrors<RawScalar> and the output error source is <RawScalar as RawScalarTrait>::ValidationErrors.

§Variants

  • Input: Indicates that the input exponent was invalid for the exponential computation. This could be due to failing initial validation (e.g., containing NaN or Infinity). The source field provides more specific details via ExpInputErrors.

  • Output: Indicates that the computed exponential value itself failed validation. This typically means the result of the exp operation yielded a non-finite value (NaN or Infinity), or overflowed. The source field provides details, usually an instance of ErrorsValidationRawReal or ErrorsValidationRawComplex.

Aliased Type§

pub enum ExpErrors<RawScalar> {
    Input {
        source: ExpInputErrors<RawScalar>,
    },
    Output {
        source: <RawScalar as RawScalarTrait>::ValidationErrors,
    },
}

Variants§

§

Input

Error due to invalid input values.

This variant is returned when initial validation of the function’s arguments fails according to the defined validation policy (e.g., StrictFinitePolicy) or due to domain-specific constraints (e.g., negative input to a real logarithm).

Fields

§source: ExpInputErrors<RawScalar>

The source error that occurred during input validation. This provides specific details about why the input was considered invalid.

§

Output

Error due to the computed output failing validation.

This variant is returned if the result of the computation, even from valid inputs, fails validation according to the defined policy. This typically means the result was non-finite (NaN or Infinity) or otherwise did not meet the criteria for a valid output.

Fields

§source: <RawScalar as RawScalarTrait>::ValidationErrors

The source error that occurred during output validation. This provides specific details about why the computed output was considered invalid.