Class ServiceBlacklistedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ammann.servicemanager.exception.ServiceBlacklistedException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionServiceBlacklistedException(String containerId) Constructs a new exception for the given container. -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier of the blacklisted container.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceBlacklistedException
Constructs a new exception for the given container.- Parameters:
containerId- the identifier of the blacklisted container
-
-
Method Details
-
getContainerId
Returns the identifier of the blacklisted container.- Returns:
- the container identifier
-