org.apache.taglibs.rdc.scxml
Interface ErrorReporter

All Known Implementing Classes:
Tracer

public interface ErrorReporter

An interface for reporting SCXML errors to the host environment, containing the definition of commonly occuring errors while executing SCXML documents.

Author:
Jaroslav Gergic, Rahul Akolkar

Field Summary
static java.lang.String EXPRESSION_ERROR
          An expression language error.
static java.lang.String ILLEGAL_CONFIG
          Illegal state machine configuration.
static java.lang.String ILLEGAL_INITIAL
          An initial state for a composite state whose Transition does not Map to a descendant of the composite state.
static java.lang.String NO_INITIAL
          Missing initial state for a composite state or for the smxml root.
static java.lang.String NON_DETERMINISTIC
          Non-deterministic situation has occured - there are more than one enabled transitions in conflict.
static java.lang.String UNDEFINED_VARIABLE
          A variable reffered to by assign@name is undefined.
static java.lang.String UNKNOWN_ACTION
          Unknown action - unsupported executable content.
 
Method Summary
 void onError(java.lang.String errCode, java.lang.String errDetail, java.lang.Object errCtx)
           
 

Field Detail

NO_INITIAL

static final java.lang.String NO_INITIAL
Missing initial state for a composite state or for the smxml root.

See Also:
SCXML.getInitialState(), State.getInitial(), Constant Field Values

ILLEGAL_INITIAL

static final java.lang.String ILLEGAL_INITIAL
An initial state for a composite state whose Transition does not Map to a descendant of the composite state.

See Also:
Constant Field Values

UNKNOWN_ACTION

static final java.lang.String UNKNOWN_ACTION
Unknown action - unsupported executable content. List of supported actions: assign, cancel, elseif, else, if, log, send, var

See Also:
Constant Field Values

ILLEGAL_CONFIG

static final java.lang.String ILLEGAL_CONFIG
Illegal state machine configuration. Either a parallel exists which does not have all its AND sub-states active or there are multiple enabled OR states on the same level.

See Also:
Constant Field Values

NON_DETERMINISTIC

static final java.lang.String NON_DETERMINISTIC
Non-deterministic situation has occured - there are more than one enabled transitions in conflict.

See Also:
Constant Field Values

UNDEFINED_VARIABLE

static final java.lang.String UNDEFINED_VARIABLE
A variable reffered to by assign@name is undefined.

See Also:
Constant Field Values

EXPRESSION_ERROR

static final java.lang.String EXPRESSION_ERROR
An expression language error.

See Also:
Constant Field Values
Method Detail

onError

void onError(java.lang.String errCode,
             java.lang.String errDetail,
             java.lang.Object errCtx)
Parameters:
errCode - 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


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.