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 Details

    • ServiceUnavailableException

      Constructs a new ServiceUnavailableException.
    • ServiceUnavailableException

      Constructs a new ServiceUnavailableException with the specified cause.
      Parameters:
      message - the cause of the exception.
    • ServiceUnavailableException

      public ServiceUnavailableException(String message, boolean forceMaintenanceMode)
      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

      public boolean forceMaintenanceMode()
      Check if the exception force the maintenance mode.
      Returns:
      true if the maintenance mode has to be forced