Class FileAlreadyExistsException

All Implemented Interfaces:
Serializable

public class FileAlreadyExistsException extends ExistsException
This is an exception thrown when trying to create a file that already exists.
Author:
Brage Halvorsen Kvamme, Trym Hamer Gudvangen
See Also:
  • Constructor Details

    • FileAlreadyExistsException

      public FileAlreadyExistsException(String attribute, String value)
      This method constructs a new FileAlreadyExistsException with the specified attribute and value.
      Parameters:
      attribute - The attribute of the file that already exists, given as a String
      value - The value of the attribute of the file that already exists, given as a String
    • FileAlreadyExistsException

      public FileAlreadyExistsException(String attribute, Long value)
      This method constructs a new FileAlreadyExistsException with the specified attribute and value.
      Parameters:
      attribute - The attribute of the file that already exists, given as a String
      value - The value of the attribute of the file that already exists, given as a Long object