oracle.xml.parser.v2
Class XMLError
oracle.xml.util.XMLError
|
+--oracle.xml.parser.v2.XMLError
- public class XMLError
- extends XMLError
This class hold error message and the line number where it occured
Constructor Summary |
XMLError()
Default constructor |
Methods inherited from class oracle.xml.util.XMLError |
error, error, error0, error1, error2, error3, flushErrorStream, formatErrorMesg, getColumnNumber, getException, getFirstError, getLineNumber, getLocator, getMessage, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getMessage5, getMessageType, getNumMessages, getPublicId, getSystemId, printErrorListener, reset, setErrorStream, setErrorStream, setErrorStream, setException, setLocale, setLocator, showWarnings |
XMLError
public XMLError()
- Default constructor
setErrorHandler
public void setErrorHandler(ErrorHandler err)
- Register error handler
-
- Parameters:
err
- - ErrorHandler
getErrorHandler
public ErrorHandler getErrorHandler()
- Return register error handler
-
- Returns:
- ErrorHandler
error
public void error(int line,
int col,
java.lang.String pubId,
java.lang.String sysId,
java.lang.String mesg,
int id,
int type,
boolean stop)
throws XMLParseException
- Adds a new error to the vector
-
- Parameters:
line
- the line number where error occurs
col
- the column number where the error occurs
pubId
- the public Identifier
sysId
- the system identifier
mesg
- the error message
id
- the error id
type
- the error type
stop
- boolean to indicate if the processing needs to be stopped.
- Throws:
- throws - ParseException in case of a fatal error
flushErrors
public void flushErrors()
throws XMLParseException
- Flush all the error to the ouput stream output stream defaults or to error handler
-
- Throws:
- throws - ParseException in case of a fatal error
flushErrors1
public void flushErrors1()
throws XMLParseException,
SAXParseException,
SAXException,
java.io.IOException
setErrorListener
public void setErrorListener(ErrorListener el)
- Deprecated. - This functions should be used.
- Register error listener
-
- Parameters:
err
- - ErrorListener
getErrorListener
public ErrorListener getErrorListener()
- Deprecated. - This functions should be used.
- Return register error listener
-
- Returns:
- ErrorListener
Copyright © 1997, 2004, Oracle. All rights reserved.