Class ResourceNotExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.EntityNotExistsException
cz.metacentrum.perun.core.api.exceptions.ResourceNotExistsException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to get a resource which does not exist in the database
- Author:
- Slavek Licehammer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResourceNotExistsException
(Resource resource) Constructor with the resourceResourceNotExistsException
(String message) Simple constructor with a messageResourceNotExistsException
(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
-
ResourceNotExistsException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ResourceNotExistsException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ResourceNotExistsException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ResourceNotExistsException
Constructor with the resource- Parameters:
resource
- resource that does not exist
-
-
Method Details
-
getResource
Getter for the resource- Returns:
- resource that does not exist
-