Class ModelAlreadyExistsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
main.utils.exception.ModelAlreadyExistsException
All Implemented Interfaces:
Serializable

public class ModelAlreadyExistsException extends Exception
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 Details

    • ModelAlreadyExistsException

      public ModelAlreadyExistsException()
      Creates a new instance of the ModelAlreadyExistsException class with a default error message. The default message is "Model already exists".
    • ModelAlreadyExistsException

      public ModelAlreadyExistsException(String message)
      Creates a new instance of the ModelAlreadyExistsException class with a custom error message.
      Parameters:
      message - The custom error message to be used.