Class ServiceAlreadyBannedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.ServiceAlreadyBannedException
- All Implemented Interfaces:
Serializable
This exception is thrown when the service is already blocked/banned on facility/destination.
- Author:
- Pavel Zlámal invalid input: '<'zlamal@cesnet.cz>
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceAlreadyBannedException
(Service service, Destination destination) Constructor with the service and the facilityServiceAlreadyBannedException
(Service service, Facility facility) Constructor with the service and the facilityServiceAlreadyBannedException
(String message) Simple constructor with a messageServiceAlreadyBannedException
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object -
Method Summary
Modifier and TypeMethodDescriptionGetter for the destinationGetter for the facilityGetter for the serviceMethods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunException
getErrorId, getFriendlyMessageTemplate, getMessage, getName, setErrorId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceAlreadyBannedException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ServiceAlreadyBannedException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ServiceAlreadyBannedException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ServiceAlreadyBannedException
Constructor with the service and the facility- Parameters:
service
- service that is already blocked/bannedfacility
- facility on which the service is blocked/banned
-
ServiceAlreadyBannedException
Constructor with the service and the facility- Parameters:
service
- service that is already blocked/banneddestination
- destination on which the service is blocked/banned
-
-
Method Details
-
getDestination
Getter for the destination- Returns:
- destination on which the service is blocked/banned
-
getFacility
Getter for the facility- Returns:
- facility on which the service is blocked/banned
-
getService
Getter for the service- Returns:
- service that is already blocked/banned
-