Class StoreNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotFoundException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.StoreNotFoundException
- All Implemented Interfaces:
Serializable
An exception to be thrown when a store is not found.
- Author:
- Leon Egeberg Hesthaug, Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStoreNotFoundException
(Long storeId) This method constructs a new StoreNotFoundException with the specified store id.StoreNotFoundException
(String storeName) This method constructs a new StoreNotFoundException with the specified store name. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StoreNotFoundException
This method constructs a new StoreNotFoundException with the specified store name.- Parameters:
storeName
- The name of the store that was not found, given as a String
-
StoreNotFoundException
This method constructs a new StoreNotFoundException with the specified store id.- Parameters:
storeId
- The id of the store that was not found, given as a Long object.
-