Package main.utils.exception
Class ModelAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
main.utils.exception.ModelAlreadyExistsException
- All Implemented Interfaces:
- Serializable
The 
ModelAlreadyExistsException class is a custom exception that is thrown when an attempt is made to add a
 model to a repository that already contains a model with the same ID.
 It extends the Exception class.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance of theModelAlreadyExistsExceptionclass with a default error message.ModelAlreadyExistsException(String message) Creates a new instance of theModelAlreadyExistsExceptionclass with a custom error message.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ModelAlreadyExistsExceptionpublic ModelAlreadyExistsException()Creates a new instance of theModelAlreadyExistsExceptionclass with a default error message. The default message is "Model already exists".
- 
ModelAlreadyExistsExceptionCreates a new instance of theModelAlreadyExistsExceptionclass with a custom error message.- Parameters:
- message- The custom error message to be used.
 
 
-