Package org.ametys.runtime.exception
Class ServiceUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ametys.runtime.exception.ServiceUnavailableException
- All Implemented Interfaces:
Serializable
Exception representing a 503 response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ServiceUnavailableException.ServiceUnavailableException
(String message) Constructs a new ServiceUnavailableException with the specified cause.ServiceUnavailableException
(String message, boolean forceMaintenanceMode) Constructs a new ServiceUnavailableException with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the exception force the maintenance mode.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceUnavailableException
public ServiceUnavailableException()Constructs a new ServiceUnavailableException. -
ServiceUnavailableException
Constructs a new ServiceUnavailableException with the specified cause.- Parameters:
message
- the cause of the exception.
-
ServiceUnavailableException
Constructs a new ServiceUnavailableException with the specified cause.- Parameters:
message
- the cause of the exception.forceMaintenanceMode
-true
to force the maintenance mode,true
is the default value.
-
-
Method Details
-
forceMaintenanceMode
Check if the exception force the maintenance mode.- Returns:
true
if the maintenance mode has to be forced
-