QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
org.qscript.eventsonfire.ErrorHandler Interface Reference

Inherited by org.qscript.eventsonfire.DefaultErrorHandler, and org.qscript.eventsonfire.JDKLoggingErrorHandler.

Public Member Functions

void invocationFailed (Method method, String message, Throwable cause, Object producer, Object consumer, Object event, String...tags)
 
void unhandledException (String message, Throwable cause)
 
void interrupted (InterruptedException e)
 

Detailed Description

Handler for errors within the Events mechanism.

Author
Manfred HANTSCHEL

Member Function Documentation

void org.qscript.eventsonfire.ErrorHandler.interrupted ( InterruptedException  e)

Called if the event thread got interrupted.

Parameters
ethe interrupted exception

Implemented in org.qscript.eventsonfire.DefaultErrorHandler, and org.qscript.eventsonfire.JDKLoggingErrorHandler.

void org.qscript.eventsonfire.ErrorHandler.invocationFailed ( Method  method,
String  message,
Throwable  cause,
Object  producer,
Object  consumer,
Object  event,
String...  tags 
)

Called if the invocation of an event handler method fails.

Parameters
methodthe method which caused the error
messagesome informative message
causethe exception if available, may be null
producerthe producer of the event
consumerthe consumer of the event
eventthe event itself
tagsthe tags, if any
void org.qscript.eventsonfire.ErrorHandler.unhandledException ( String  message,
Throwable  cause 
)

Called if a unhandled exception occurs in the event handler thread.

Parameters
messagethe message
causethe cause

The documentation for this interface was generated from the following file: