java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.aoapps.dbc.EventException
- All Implemented Interfaces:
LocalizedException
,Serializable
,Iterable<Throwable>
When an event handler fails,
any
Throwable
other than Error
, RuntimeException
,
or SQLException
will be wrapped in an EventException
.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEventException
(Resources resources, String key) EventException
(Resources resources, String key, Serializable... args) EventException
(String reason) EventException
(String reason, Throwable cause) EventException
(Throwable cause) EventException
(Throwable cause, Resources resources, String key) EventException
(Throwable cause, Resources resources, String key, Serializable... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal Serializable[]
getArgs()
final String
getKey()
final Resources
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
resources
-
key
-
args
-
-
Constructor Details
-
EventException
public EventException() -
EventException
-
EventException
-
EventException
-
EventException
-
EventException
-
EventException
-
EventException
-
-
Method Details
-
getLocalizedMessage
- Specified by:
getLocalizedMessage
in interfaceLocalizedException
- Overrides:
getLocalizedMessage
in classThrowable
-
getResources
- Specified by:
getResources
in interfaceLocalizedException
-
getKey
- Specified by:
getKey
in interfaceLocalizedException
-
getArgs
- Specified by:
getArgs
in interfaceLocalizedException
- Returns:
- No defensive copy
-