Class ConsentNotExistsException

All Implemented Interfaces:
Serializable

public class ConsentNotExistsException extends EntityNotExistsException
Thrown when trying to retrieve a consent that doesn't exist from the database
Author:
David Flor <493294@mail.muni.cz>
See Also:
  • Constructor Details

    • ConsentNotExistsException

      public ConsentNotExistsException(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • ConsentNotExistsException

      public ConsentNotExistsException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • ConsentNotExistsException

      public ConsentNotExistsException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
    • ConsentNotExistsException

      public ConsentNotExistsException(Consent consent)
      Constructor with the consent that does not exist
      Parameters:
      consent - the consent
  • Method Details

    • getConsent

      public Consent getConsent()
      Getter for the consent that doesn't exist
      Returns:
      the consent that doesn't exist