Class NotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.NoSuchElementException
clazzfish.monitor.exception.NotFoundException
- All Implemented Interfaces:
Serializable
If you did not find a result and want to avoid 'null" as return value you can
throw this exception here. Originally this exception was part of
PatternTesting and derived direct from
RuntimeException
. Now it is
derived direct from NoSuchElementException
because it fits better
and it has a NotFoundException(String, Throwable)
constructor.- Author:
- oliver
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotFoundException
(Object value) Instantiates a new not found exception.NotFoundException
(String msg) Instantiates a new not found exception.NotFoundException
(String msg, Throwable t) Instantiates a new not found exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NotFoundException
Instantiates a new not found exception.- Parameters:
value
- the object which was not found
-
NotFoundException
Instantiates a new not found exception.- Parameters:
msg
- the message
-
NotFoundException
-
-
Method Details
-
getCause
-