Class UnhealthyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.getelements.elements.sdk.model.exception.BaseException
dev.getelements.elements.sdk.model.exception.InternalException
dev.getelements.elements.sdk.model.exception.UnhealthyException
- All Implemented Interfaces:
Serializable
Thrown when the service instance is in an unhealthy state.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnhealthyException(HealthStatus healthStatus) Creates a new instance with the given health status. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the error code.Returns the current health status.Methods inherited from class dev.getelements.elements.sdk.model.exception.InternalException
fillInStackTraceMethods inherited from class dev.getelements.elements.sdk.model.exception.BaseException
forceFillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnhealthyException
Creates a new instance with the given health status.- Parameters:
healthStatus- the current health status
-
-
Method Details
-
getHealthStatus
Returns the current health status.- Returns:
- the health status
-
getCode
Description copied from class:BaseExceptionGets the error code.- Overrides:
getCodein classInternalException- Returns:
- the
ErrorCode
-