Class ConsentExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.ConsentExistsException
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to create a consent with the same data that is already in database.
- See Also:
-
Constructor Summary
ConstructorDescriptionConsentExistsException
(Consent consent) Constructor with consentConsentExistsException
(String message) Simple constructor with a messageConsentExistsException
(String message, Throwable cause) Constructor with a message and Throwable objectConsentExistsException
(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
-
ConsentExistsException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ConsentExistsException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ConsentExistsException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ConsentExistsException
Constructor with consent- Parameters:
consent
- consent
-