|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.xml.util.SAXErrorHandler
A simple SAXErrorHandler. Reports errors to System.err and keeps track of the most severe error. Can be configured to throw exceptions when errors more severe than a certain LEVEL are encountered
Field Summary | |
static int |
LEVEL_ERROR
|
static int |
LEVEL_FATAL
|
static int |
LEVEL_SUCCESS
|
static int |
LEVEL_WARNING
|
Constructor Summary | |
SAXErrorHandler()
Create a SAXErrorHandler which will throw exceptions for all errors (but not warnings) |
|
SAXErrorHandler(int minLevelForException)
Create a SAXErrorHandler |
Method Summary | |
void |
error(SAXParseException exception)
|
void |
fatalError(SAXParseException exception)
|
int |
getErrorLevel()
Get the level of the most severe error. |
void |
warning(SAXParseException exception)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEVEL_SUCCESS
public static final int LEVEL_WARNING
public static final int LEVEL_ERROR
public static final int LEVEL_FATAL
Constructor Detail |
public SAXErrorHandler()
public SAXErrorHandler(int minLevelForException)
minLevelForException
- The minimum error level for which exceptions will be thrownMethod Detail |
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public int getErrorLevel()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |