Package org.projectbarbel.histo.event
Class HistoEventFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.projectbarbel.histo.event.HistoEventFailedException
-
- All Implemented Interfaces:
Serializable
public class HistoEventFailedException extends RuntimeException
Exception thrown when synchronousHistoEvent
fails. Provides access to the failing event to enable specific error handling by the client. Only thrown whenHistoEvent.failed(Throwable)
is called in the listener implementation. Clients can pass back context data to their exception handling by adding data toHistoEvent.getEventContext()
.- Author:
- Niklas Schlimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HistoEventFailedException(String message, Throwable cause, HistoEvent event)
HistoEventFailedException(String message, HistoEvent event)
-
Method Summary
Modifier and Type Method Description HistoEvent
getEvent()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HistoEventFailedException
public HistoEventFailedException(String message, Throwable cause, HistoEvent event)
-
HistoEventFailedException
public HistoEventFailedException(String message, HistoEvent event)
-
-
Method Detail
-
getEvent
public HistoEvent getEvent()
-
-