Class ResourceExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.ResourceExistsException
- All Implemented Interfaces:
Serializable
This exception is thrown when the resource could not be created/updated because there is already a resource with the
same name
- Author:
- Oliver Mrázik
- See Also:
-
Constructor Summary
ConstructorDescriptionResourceExistsException
(Resource resource) Constructor with the resourceResourceExistsException
(String message) Simple constructor with a messageResourceExistsException
(String message, Throwable cause) Constructor with a message and Throwable objectResourceExistsException
(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
-
ResourceExistsException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ResourceExistsException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ResourceExistsException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ResourceExistsException
Constructor with the resource- Parameters:
resource
- resource that already exists
-
-
Method Details
-
getResource
Getter for the resource- Returns:
- resource that already exists
-