Class ElementAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.imageconverter.infra.exception.BaseApplicationException
org.imageconverter.infra.exception.ElementConflictException
org.imageconverter.infra.exception.ElementAlreadyExistsException
- All Implemented Interfaces:
Serializable
Element already exists exception.
- Author:
- Fernando Romulo da Silva
- See Also:
-
Constructor Summary
ConstructorDescriptionElementAlreadyExistsException
(Class<T> cls, Object id) Constructs a new ElementAlreadyExistsException exception and create detail message regard of parameters.ElementAlreadyExistsException
(Class<T> cls, Object[] params) Constructs a new ElementAlreadyExistsException exception and create detail message regard of parameters. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ElementAlreadyExistsException
Constructs a new ElementAlreadyExistsException exception and create detail message regard of parameters. For instance for Person object with id 10: "Person with id '10' already exists"- Type Parameters:
T
- The class type- Parameters:
cls
- Class elementid
- Object id that repeated
-
ElementAlreadyExistsException
Constructs a new ElementAlreadyExistsException exception and create detail message regard of parameters. The exception detail msg will be: cls.getSimpleName() + " with " + msg + " already exists". For instance for Person object and msg equals to "id '10' and name 'Fernando'": "Person with id '10' and name 'Fernando' already exists"- Type Parameters:
T
- The class type- Parameters:
cls
- Class elementmsg
- The specific message
-