Package codes.grow.packages.loki
Class LokiServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
codes.grow.packages.loki.core.LokiException
codes.grow.packages.loki.LokiServerException
- All Implemented Interfaces:
Serializable
A non-transient server-side failure with code
ErrorCode.UNAVAILABLE and
retryable=false.
Raised for push status 260 (ingestion administratively blocked) and for responses the SDK
cannot decode. A plain HTTP 500 is a retryable UnavailableException (SPEC 2.1), and so is
a 500/503 whose text says Ingester is shutting down (WAL disk at least 90 % full).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLokiServerException(String message, Integer httpStatus, String requestId, Throwable cause) Creates the exception. -
Method Summary
Methods inherited from class codes.grow.packages.loki.core.LokiException
code, httpStatus, of, of, requestId, retryable, retryAfterMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LokiServerException
Creates the exception.- Parameters:
message- redacted messagehttpStatus- HTTP status ornullrequestId- request id ornullcause- cause ornull
-