|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.share.xml.ParseErrorUtils
public class ParseErrorUtils
Error reporting utilities. Many of these utility methods are available in even more convenient form on BaseNodeParser.
BaseNodeParser.getRequiredAttribute(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, org.xml.sax.Attributes, java.lang.String)
,
org.apache.myfaces.trinidadinternal.share.xml.BaseNodeParser#logWarning
,
BaseNodeParser.logError(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.Exception)
,
BaseNodeParser.logUnexpectedElement(org.apache.myfaces.trinidadinternal.share.xml.ParseContext, java.lang.String, java.lang.String)
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 line,
int column,
java.lang.String systemId,
java.util.logging.Level verbosity,
org.apache.myfaces.trinidad.logging.TrinidadLogger log)
Sends a message to the error log, including full line and column information. |
static void |
log(ParseContext context,
java.lang.String message,
java.lang.Exception e,
java.util.logging.Level verbosity,
org.apache.myfaces.trinidad.logging.TrinidadLogger log)
Sends a message to the error log, automatically pulling line and column information from the context |
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, java.util.logging.Level verbosity, org.apache.myfaces.trinidad.logging.TrinidadLogger log)
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, java.util.logging.Level verbosity, org.apache.myfaces.trinidad.logging.TrinidadLogger log)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |