Class AlreadyExistsException

All Implemented Interfaces:
Serializable

public class AlreadyExistsException extends UserException
Attempt to add an object that already exists. Some providers may enforce a uniqueness requirement on one or more data elements not specified in the interface while others may permit it. The places where this error is required to be returned relate to indices or other pseudo-identifiers specified in the interface.
See Also:
  • Constructor Details

    • AlreadyExistsException

      public AlreadyExistsException(String msg)
      Constructs a AlreadyExistsException with the specified detail message. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
    • AlreadyExistsException

      public AlreadyExistsException(String msg, Throwable t)
      Constructs a AlreadyExistsException with the specified detail message and cause. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
      t - the cause of the exception
    • AlreadyExistsException

      public AlreadyExistsException(Throwable t)
      Constructs a AlreadyExistsException with the specified cause and a detail message of cause.toString() which typically contains the class and detail message of cause.
      Parameters:
      t - the cause of the exception