pub enum GamlssError {
DimensionMismatch {
reason: String,
},
InvalidInput {
reason: String,
},
NonFinite {
reason: String,
},
UnsupportedConfiguration {
reason: String,
},
ConstraintViolation {
reason: String,
},
NumericalFailure {
reason: String,
},
}Expand description
Typed errors surfaced from this module’s helpers and family
implementations. The Display impl writes the carried reason verbatim,
so callers that historically returned Result<_, String> keep their
user-visible text byte-for-byte identical after coercion via the
From<GamlssError> for String impl below.
Variants§
DimensionMismatch
Shape, length, row, or column mismatches between matrices, vectors, specs, or block configurations.
InvalidInput
Generic input validation that doesn’t fit a more specific variant (e.g. positivity-of-response checks, shape parameter must be finite > 0).
NonFinite
Non-finite values discovered in inputs, coefficients, seeds, or intermediate quantities required to remain finite.
UnsupportedConfiguration
A model configuration or feature combination is not supported by the requested family / link / engine (e.g. identity link on a binomial mean-wiggle family, unexpected design-map variant).
ConstraintViolation
Bound, range, monotonicity, or sign constraints violated by supplied parameters or coefficients.
NumericalFailure
Numerical failures during inner solves, integration, or optimization (invalid probabilities, non-finite log-likelihood, invalid λ, divergence).
Trait Implementations§
Source§impl Debug for GamlssError
impl Debug for GamlssError
Source§impl Display for GamlssError
impl Display for GamlssError
Source§impl Error for GamlssError
impl Error for GamlssError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BlockCountMismatch> for GamlssError
impl From<BlockCountMismatch> for GamlssError
Source§fn from(err: BlockCountMismatch) -> GamlssError
fn from(err: BlockCountMismatch) -> GamlssError
Source§impl From<GamlssError> for String
impl From<GamlssError> for String
Source§fn from(err: GamlssError) -> String
fn from(err: GamlssError) -> String
Auto Trait Implementations§
impl Freeze for GamlssError
impl RefUnwindSafe for GamlssError
impl Send for GamlssError
impl Sync for GamlssError
impl Unpin for GamlssError
impl UnsafeUnpin for GamlssError
impl UnwindSafe for GamlssError
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.