Class ElementNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.imageconverter.infra.exception.BaseApplicationException
org.imageconverter.infra.exception.ElementNotFoundException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ElementWithIdNotFoundException
Element not found on search.
- Author:
- Fernando Romulo da Silva
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionElementNotFoundException
(Class<T> cls, String msg) Constructs a new ElementNotFoundException exception and create detail message regard of parameters.protected
ElementNotFoundException
(String msg, Object... params) Constructs a new BaseApplicationException exception with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ElementNotFoundException
Constructs a new ElementNotFoundException exception and create detail message regard of parameters. For instance for Person object and msg equals to "id '10' and name 'Fernando'": "Person with id '10' and name 'Fernando' not found"- Type Parameters:
T
- The class type- Parameters:
cls
- Class elementmsg
- The specific message
-
ElementNotFoundException
Constructs a new BaseApplicationException exception with the specified detail message.- Parameters:
msg
- The detail messageparams
- The parameters used on message
-