|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.io.ErrorReporter
Object used to report error message for the user. Can write eror messages to a file or save them in a memory buffer. This is also a SAX compliant ErrorHandler.
Constructor Summary | |
ErrorReporter()
Construct a new error report object with output saved in a string buffer. |
|
ErrorReporter(PrintStream output)
Construct a new error report object. |
|
ErrorReporter(PrintWriter output)
Construct a new error report object. |
Method Summary | |
void |
error(SAXParseException exception)
Receive notification of a SAX recoverable error. |
void |
error(String msg)
Report an error. |
void |
error(String msg,
Locator locator)
Report an error with file name and line number. |
void |
error(String msg,
String fileName,
int lineNum)
Report an error with file name and line number. |
void |
error(String domain,
String key,
org.enhydra.apache.xerces.xni.parser.XMLParseException exception)
|
void |
error(String msg,
Throwable except)
Report an error from an exception |
void |
fatalError(SAXParseException exception)
Receive notification of a SAX non-recoverable error. |
void |
fatalError(String domain,
String key,
org.enhydra.apache.xerces.xni.parser.XMLParseException exception)
|
int |
getErrorCnt()
Get the count of errors that have occured. |
String |
getOutput()
Get the buffer containing the output if internal buffering has been used. |
boolean |
getPrintDebug()
Get the value of the printDebug flag. |
boolean |
getPrintWarnings()
Get the value of the printWarnings flag. |
int |
getWarningCnt()
Get the count of warnings that have occured. |
void |
setPrintDebug(boolean value)
Set the value of the printDebug flag. |
void |
setPrintWarnings(boolean value)
Set the value of the printWarnings flag. |
void |
warning(SAXParseException exception)
Receive notification of a SAX warning. |
void |
warning(String msg)
Report a warning. |
void |
warning(String msg,
Locator locator)
Report a warning with file name and line number. |
void |
warning(String msg,
String fileName,
int lineNum)
Report a warning with file name and line number. |
void |
warning(String domain,
String key,
org.enhydra.apache.xerces.xni.parser.XMLParseException exception)
|
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ErrorReporter(PrintWriter output)
output
- Writer to recieve error output.public ErrorReporter(PrintStream output)
output
- PrintStream to recieve error output.public ErrorReporter()
Method Detail |
public boolean getPrintWarnings()
public void setPrintWarnings(boolean value)
public boolean getPrintDebug()
public void setPrintDebug(boolean value)
public int getErrorCnt()
public int getWarningCnt()
public String getOutput()
public void error(String msg)
public void error(String msg, String fileName, int lineNum)
public void error(String msg, Locator locator)
public void error(String msg, Throwable except)
public void warning(String msg)
public void warning(String msg, String fileName, int lineNum)
public void warning(String msg, Locator locator)
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
public void error(String domain, String key, org.enhydra.apache.xerces.xni.parser.XMLParseException exception) throws org.enhydra.apache.xerces.xni.XNIException
error
in interface org.enhydra.apache.xerces.xni.parser.XMLErrorHandler
public void fatalError(String domain, String key, org.enhydra.apache.xerces.xni.parser.XMLParseException exception) throws org.enhydra.apache.xerces.xni.XNIException
fatalError
in interface org.enhydra.apache.xerces.xni.parser.XMLErrorHandler
public void warning(String domain, String key, org.enhydra.apache.xerces.xni.parser.XMLParseException exception) throws org.enhydra.apache.xerces.xni.XNIException
warning
in interface org.enhydra.apache.xerces.xni.parser.XMLErrorHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |