Package uniffi.cedarling_uniffi
Class MetricsException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class MetricsException extends Exception
Error returned by crate::Cedarling::drain_metrics when a local metrics snapshot is not available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMetricsException.NotEnabledLocal metrics collection is disabled. Enable it by setting
CEDARLING_METRICS_COLLECTION=enabled.public final classMetricsException.LockTelemetryThe metrics collector is owned by the Lock telemetry ticker; enabling
CEDARLING_METRICS_COLLECTIONwill not help. Returned wheneverCEDARLING_LOCK_TELEMETRY_INTERVALis set, even if the Lock server has no telemetry endpoint and metrics are not shipped anywhere.public classMetricsException.ErrorHandler
-
Field Summary
Fields Modifier and Type Field Description private final Stringmessageprivate final Throwablecauseprivate final StringlocalizedMessageprivate final Array<Throwable>suppressedprivate Array<StackTraceElement>stackTracepublic final static MetricsException.ErrorHandlerErrorHandler
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-