Class FacilityNotExistsException

All Implemented Interfaces:
Serializable

public class FacilityNotExistsException extends EntityNotExistsException
This exception is thrown when trying to get a facility that does not exist in the database
Author:
Martin Kuba
See Also:
  • Constructor Details

    • FacilityNotExistsException

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

      public FacilityNotExistsException(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
    • FacilityNotExistsException

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

      public FacilityNotExistsException(Facility facility)
      Constructor with the facility
      Parameters:
      facility - that does not exist
  • Method Details

    • getFacility

      public Facility getFacility()
      Getter for the facility
      Returns:
      facility that does not exist