Class ServiceExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.EntityExistsException
cz.metacentrum.perun.core.api.exceptions.ServiceExistsException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to create a service with a name that has already been used
- Author:
- Slavek Licehammer
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceExistsException
(Service service) Constructor with the serviceServiceExistsException
(String message) Simple constructor with a messageServiceExistsException
(String message, Throwable cause) Constructor with a message and Throwable objectServiceExistsException
(Throwable cause) Constructor 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
-
ServiceExistsException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ServiceExistsException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ServiceExistsException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ServiceExistsException
Constructor with the service- Parameters:
service
- service that already exists
-
-
Method Details
-
getService
Getter for the service- Returns:
- service that already exists
-