Class DuplicateArgumentException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ucsb.cs156.rec.errors.DuplicateArgumentException
All Implemented Interfaces:
Serializable

public class DuplicateArgumentException extends RuntimeException
This is an error class for a custom RuntimeException in Java that is used to indicate when an entity of a specific type has already been added to the database.
See Also:
  • Constructor Details

    • DuplicateArgumentException

      public DuplicateArgumentException(String reqType)
      Constructor for the exception
      Parameters:
      entityType - The class of the entity that was not found, e.g. User.class
      id - the id that was being searched for