Class FileAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ntnu.idatt2106_2023_06.backend.exception.exists.ExistsException
edu.ntnu.idatt2106_2023_06.backend.exception.exists.FileAlreadyExistsException
- All Implemented Interfaces:
Serializable
This is an exception thrown when trying to create a file that already exists.
- Author:
- Brage Halvorsen Kvamme, Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileAlreadyExistsException
(String attribute, Long value) This method constructs a new FileAlreadyExistsException with the specified attribute and value.FileAlreadyExistsException
(String attribute, String value) This method constructs a new FileAlreadyExistsException with the specified attribute and value. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileAlreadyExistsException
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 Stringvalue
- The value of the attribute of the file that already exists, given as a String
-
FileAlreadyExistsException
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 Stringvalue
- The value of the attribute of the file that already exists, given as a Long object
-