|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.xml.ParseErrorUtils
Error reporting utilities. Many of these utility methods are available in even more convenient form on BaseNodeParser and BaseParserExtension.
BaseNodeParser.getRequiredAttribute(oracle.cabo.share.xml.ParseContext, org.xml.sax.Attributes, java.lang.String)
,
BaseNodeParser.logWarning(oracle.cabo.share.xml.ParseContext, java.lang.String)
,
BaseNodeParser.logError(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.Exception)
,
BaseNodeParser.logUnexpectedElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String)
,
BaseParserExtension.logWarning(oracle.cabo.share.xml.ParseContext, java.lang.String)
,
BaseParserExtension.logError(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.Exception)
Constructor Summary | |
ParseErrorUtils()
|
Method Summary | |
static java.lang.String |
getErrorMessage(ParseContext context,
java.lang.String message)
Creates an error message that will include line number, column number, and other information from the parsing context. |
static void |
log(ParseContext context,
java.lang.String message,
java.lang.Exception e,
int verbosity)
Sends a message to the error log, automatically pulling line and column information from the context |
static void |
log(ParseContext context,
java.lang.String message,
java.lang.Exception e,
int line,
int column,
java.lang.String systemId,
int verbosity)
Sends a message to the error log, including full line and column information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParseErrorUtils()
Method Detail |
public static void log(ParseContext context, java.lang.String message, java.lang.Exception e, int verbosity)
context
- the parsing contextmessage
- the string message, if anye
- the associated exception, if anyverbosity
- the verbosity level of the problempublic static void log(ParseContext context, java.lang.String message, java.lang.Exception e, int line, int column, java.lang.String systemId, int verbosity)
context
- the parsing contextmessage
- the string message, if anye
- the associated exception, if anyline
- the line numbercolumn
- the column numberverbosity
- the verbosity level of the problempublic static java.lang.String getErrorMessage(ParseContext context, java.lang.String message)
context
- the parsing contextmessage
- a base message
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |