Class ServiceAlreadyAssignedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.EntityAlreadyAssignedException
cz.metacentrum.perun.core.api.exceptions.ServiceAlreadyAssignedException
- All Implemented Interfaces:
Serializable
This exception is thrown when the service has already been assigned to the resource.
- Author:
- Slavek Licehammer
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceAlreadyAssignedException
(Service service) Constructor with the serviceServiceAlreadyAssignedException
(String message) Simple constructor with a messageServiceAlreadyAssignedException
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object -
Method Summary
Methods 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
-
ServiceAlreadyAssignedException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ServiceAlreadyAssignedException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ServiceAlreadyAssignedException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ServiceAlreadyAssignedException
Constructor with the service- Parameters:
service
- service that has already been assigned to the resource
-
-
Method Details
-
getService
Getter for the service- Returns:
- service that has already been assigned to the resource
-