Package main.utils.exception
Class ModelNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
main.utils.exception.ModelNotFoundException
- All Implemented Interfaces:
Serializable
The
ModelNotFoundException
class is a custom exception that is thrown when a requested model cannot be found
in a repository.
It extends the Exception
class.- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new instance of theModelNotFoundException
class with a default error message.ModelNotFoundException
(String message) Creates a new instance of theModelNotFoundException
class with a custom error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModelNotFoundException
public ModelNotFoundException()Creates a new instance of theModelNotFoundException
class with a default error message. The default message is "Model not found". -
ModelNotFoundException
Creates a new instance of theModelNotFoundException
class with a custom error message.- Parameters:
message
- The custom error message to be used.
-