XML for Java 2.0.0

com.ibm.xml.framework
Interface XMLErrorHandler

All Known Implementing Classes:
XMLParser

public abstract interface XMLErrorHandler

This is the interface used to report errors. All errors are reported using an error code and some optional string index parameters. See the ErrorCode class for details on the set of errors defined.

Version:
Revision: 49 1.5 src/com/ibm/xml/framework/XMLErrorHandler.java, parser, xml4j2, xml4j2_0_0
See Also:
XMLParser, ErrorCode

Method Summary
 void error(int errorCode)
          Report an error.
 void error1(int errorCode, int stringIndex1)
          Report an error with one parameter string.
 void error2(int errorCode, int stringIndex1, int stringIndex2)
          Report an error with two parameter strings.
 void error3(int errorCode, int stringIndex1, int stringIndex2, int stringIndex3)
          Report an error with three parameter strings.
 void error4(int errorCode, int stringIndex1, int stringIndex2, int stringIndex3, int stringIndex4)
          Report an error with four parameter strings.
 

Method Detail

error

public void error(int errorCode)
           throws java.lang.Exception
Report an error.
Parameters:
errorCode - Which error occurred.

error1

public void error1(int errorCode,
                   int stringIndex1)
            throws java.lang.Exception
Report an error with one parameter string.
Parameters:
errorCode - Which error occurred.
stringIndex1 - Additional information about the specific instance of this error.

error2

public void error2(int errorCode,
                   int stringIndex1,
                   int stringIndex2)
            throws java.lang.Exception
Report an error with two parameter strings.
Parameters:
errorCode - Which error occurred.
stringIndex1 - Additional information about the specific instance of this error.
stringIndex2 - Additional information about the specific instance of this error.

error3

public void error3(int errorCode,
                   int stringIndex1,
                   int stringIndex2,
                   int stringIndex3)
            throws java.lang.Exception
Report an error with three parameter strings.
Parameters:
errorCode - Which error occurred.
stringIndex1 - Additional information about the specific instance of this error.
stringIndex2 - Additional information about the specific instance of this error.
stringIndex3 - Additional information about the specific instance of this error.

error4

public void error4(int errorCode,
                   int stringIndex1,
                   int stringIndex2,
                   int stringIndex3,
                   int stringIndex4)
            throws java.lang.Exception
Report an error with four parameter strings.
Parameters:
errorCode - Which error occurred.
stringIndex1 - Additional information about the specific instance of this error.
stringIndex2 - Additional information about the specific instance of this error.
stringIndex3 - Additional information about the specific instance of this error.
stringIndex4 - Additional information about the specific instance of this error.

XML for Java 2.0.0