Package codes.grow.packages.betterstack
Class ServerResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
codes.grow.packages.betterstack.core.BetterStackException
codes.grow.packages.betterstack.core.UnavailableException
codes.grow.packages.betterstack.ServerResponseException
- All Implemented Interfaces:
Serializable
The service answered with a body the SDK cannot use: an invalid JSON response or a ClickHouse
exception without a specific mapping that followed a
200 answer. Code
UNAVAILABLE, not retryable.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerResponseException(String message, Integer httpStatus, String requestId) Creates the exception. -
Method Summary
Methods inherited from class codes.grow.packages.betterstack.core.BetterStackException
code, httpStatus, of, of, requestId, retryAfterMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerResponseException
Creates the exception.- Parameters:
message- redacted messagehttpStatus- HTTP status ornullrequestId- request id ornull
-
-
Method Details
-
retryable
public boolean retryable()Never retryable.- Overrides:
retryablein classBetterStackException- Returns:
- false
-