Class ServiceUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.activeviam.tech.core.api.exceptions.ActiveViamRuntimeException
com.activeviam.tech.core.api.exceptions.service.ServiceException
com.activeviam.tech.core.api.exceptions.service.ServiceUnavailableException
- All Implemented Interfaces:
Serializable
Class exception for situations where the server cannot handle the request (because it is
overloaded or down for maintenance).
Generally, this is a temporary state.
This reproduce HTTP code 503.
- Author:
- ActiveViam
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe code that uniquely identifies this exception (inspired from HTTP codes). -
Constructor Summary
ConstructorsConstructorDescriptionServiceUnavailableException(String message) Constructor.ServiceUnavailableException(String message, Throwable cause) Constructor.Constructor. -
Method Summary
Methods inherited from class com.activeviam.tech.core.api.exceptions.service.ServiceException
create, getCode, getLoggingLevel, getMessage, getStatusCode, isClientException, isClientException, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CODE
public static final int CODEThe code that uniquely identifies this exception (inspired from HTTP codes).- See Also:
-
-
Constructor Details
-
ServiceUnavailableException
Constructor.- Parameters:
message- the detailed message
-
ServiceUnavailableException
Constructor.- Parameters:
message- the detailed messagecause- the exception that caused this one
-
ServiceUnavailableException
Constructor.- Parameters:
cause- the exception that caused this one
-