Package it.tidalwave.util
Class AsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
it.tidalwave.util.AsException
- All Implemented Interfaces:
Serializable
This exception is thrown by an
as(...)
method that is expected to retrieve a role for a given datum, when the
role is not found.- Author:
- Fabrizio Giudici
- See Also:
- Status: stable API
-
Constructor Summary
ConstructorDescriptionAsException
(Class<?> roleType) Creates an exception.AsException
(Class<?> roleType, Throwable cause) Creates an exception with a cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AsException
Creates an exception.- Parameters:
roleType
- the type of the role that was searched and not found
-
AsException
Creates an exception with a cause.- Parameters:
roleType
- the type of the role that was searched and not foundcause
- the cause for not having found the role
-