Class ServiceBlacklistedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ammann.servicemanager.exception.ServiceBlacklistedException
All Implemented Interfaces:
Serializable

public class ServiceBlacklistedException extends RuntimeException
Runtime exception thrown when a lifecycle operation is attempted on a blacklisted container.

Containers may be blacklisted by their identifier, name, or image name via ServiceBlacklistConfig. This exception is mapped to an HTTP 403 Forbidden response by ServiceBlacklistedExceptionMapper.

See Also:
  • Constructor Details

    • ServiceBlacklistedException

      public ServiceBlacklistedException(String containerId)
      Constructs a new exception for the given container.
      Parameters:
      containerId - the identifier of the blacklisted container
  • Method Details

    • getContainerId

      public String getContainerId()
      Returns the identifier of the blacklisted container.
      Returns:
      the container identifier