public class Tracer extends Object implements ErrorHandler, ErrorReporter, SCXMLListener, Serializable, XMLReporter
Constructor and Description |
---|
Tracer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
void |
onEntry(EnterableState state)
Handle the entry into a EnterableState.
|
void |
onError(String errCode,
String errDetail,
Object errCtx)
Handler for reporting an error.
|
void |
onExit(EnterableState state)
Handle the exit out of a EnterableState.
|
void |
onTransition(TransitionTarget from,
TransitionTarget to,
Transition transition,
String event)
Handle the transition.
|
void |
report(String message,
String errorType,
Object relatedInformation,
Location location) |
void |
warning(SAXParseException exception) |
public Tracer()
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
ErrorHandler.warning(org.xml.sax.SAXParseException)
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public void onError(String errCode, String errDetail, Object errCtx)
ErrorReporter
onError
in interface ErrorReporter
errCode
- one of the ErrorReporter's constantserrDetail
- human readable descriptionerrCtx
- typically an SCXML element which caused an error,
may be accompanied by additional informationErrorReporter.onError(String, String, Object)
public void onEntry(EnterableState state)
SCXMLListener
onEntry
in interface SCXMLListener
state
- The EnterableState enteredSCXMLListener.onEntry(EnterableState)
public void onExit(EnterableState state)
SCXMLListener
onExit
in interface SCXMLListener
state
- The EnterableState exitedSCXMLListener.onExit(EnterableState)
public void onTransition(TransitionTarget from, TransitionTarget to, Transition transition, String event)
SCXMLListener
onTransition
in interface SCXMLListener
from
- The source TransitionTargetto
- The destination TransitionTargettransition
- The Transition takenevent
- The event name triggering the transitionSCXMLListener.onTransition(TransitionTarget,TransitionTarget,Transition,String)
public void report(String message, String errorType, Object relatedInformation, Location location) throws XMLStreamException
report
in interface XMLReporter
XMLStreamException
XMLReporter.report(String, String, Object, Location)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.