Rule Execution Server API

ilog.rules.xml.util
Interface IlrXmlErrorHandler


public interface IlrXmlErrorHandler

This interface is used during the XML error processing (parsing and binding) to determine whether an error is filtered or not. Error and warning events are sent to this handler by the means of processWarning or processError calls.

To activate the XML binding processing, this interface must be implemented by users and declared to an XML driver during its initialization.

Errors and warnings notified may be declared and memorized by calling the IlrXmlErrorManger methods. If those methods are not called, the notified error or the warning is forgotten.

See Also:
IlrXmlErrorManager, IlrXmlFatalErrorException, IlrXmlError

Method Summary
 boolean areSame(IlrXmlError error1, IlrXmlError error2)
          This method indicates if two errors are considered by the handler at the same time.
 boolean isNotifiedBefore(IlrXmlError error1, IlrXmlError error2)
          This method indicates if an error must be showed before before another one.
 void processError(IlrXmlError error)
          This method is called by the XML binding to notify an error to the handler.
 void processWarning(IlrXmlError error)
          This method is called by the XML binding to notify a warning to the handler.
 void setErrorManager(IlrXmlErrorManager manager)
          This method is called by the XML processing to notify the error manager currently used.
 

Method Detail

processWarning

void processWarning(IlrXmlError error)
                    throws IlrXmlFatalErrorException
This method is called by the XML binding to notify a warning to the handler.

Throws:
IlrXmlFatalErrorException - may be raised to stop the processing at once.

processError

void processError(IlrXmlError error)
                  throws IlrXmlFatalErrorException
This method is called by the XML binding to notify an error to the handler.

Throws:
IlrXmlFatalErrorException - may be raised to stop the processing at once.

isNotifiedBefore

boolean isNotifiedBefore(IlrXmlError error1,
                         IlrXmlError error2)
This method indicates if an error must be showed before before another one.


areSame

boolean areSame(IlrXmlError error1,
                IlrXmlError error2)
This method indicates if two errors are considered by the handler at the same time. In that case, the second error is removed of the XML processing.


setErrorManager

void setErrorManager(IlrXmlErrorManager manager)
This method is called by the XML processing to notify the error manager currently used. This manager is usefull declare errors or warnings to the processing.


Rule Execution Server API

© Copyright IBM Corp. 1987, 2013