org.apache.commons.scxml.env
Class SimpleErrorReporter

java.lang.Object
  extended by org.apache.commons.scxml.env.SimpleErrorReporter
All Implemented Interfaces:
Serializable, ErrorReporter

public class SimpleErrorReporter
extends Object
implements ErrorReporter, Serializable

Custom error reporter that log execution errors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.commons.scxml.ErrorReporter
EXPRESSION_ERROR, ILLEGAL_CONFIG, ILLEGAL_INITIAL, NO_INITIAL, NON_DETERMINISTIC, UNDEFINED_VARIABLE, UNKNOWN_ACTION
 
Constructor Summary
SimpleErrorReporter()
          Constructor.
 
Method Summary
 void onError(String errorCode, String errDetail, Object errCtx)
          Handler for reporting an error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleErrorReporter

public SimpleErrorReporter()
Constructor.

Method Detail

onError

public void onError(String errorCode,
                    String errDetail,
                    Object errCtx)
Description copied from interface: ErrorReporter
Handler for reporting an error.

Specified by:
onError in interface ErrorReporter
Parameters:
errorCode - one of the ErrorReporter's constants
errDetail - human readable description
errCtx - typically an SCXML element which caused an error, may be accompanied by additional information
See Also:
ErrorReporter.onError(String, String, Object)


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.