Enum glean_core::ErrorType [−][src]
pub enum ErrorType {
InvalidValue,
InvalidLabel,
InvalidState,
InvalidOverflow,
}
Expand description
The possible error types for metric recording.
Note: the cases in this enum must be kept in sync with the ones
in the platform-specific code (e.g. ErrorType.kt
) and with the
metrics in the registry files.
Variants
InvalidValue
For when the value to be recorded does not match the metric-specific restrictions
InvalidLabel
For when the label of a labeled metric does not match the restrictions
InvalidState
For when the metric caught an invalid state while recording
InvalidOverflow
For when the value to be recorded overflows the metric-specific upper range
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorType
impl UnwindSafe for ErrorType
Blanket Implementations
Mutably borrows from an owned value. Read more