org.apache.myfaces.trinidadinternal.share.xml
Class ParseErrorUtils

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.share.xml.ParseErrorUtils

public class ParseErrorUtils
extends java.lang.Object

Error reporting utilities. Many of these utility methods are available in even more convenient form on BaseNodeParser.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/share/xml/ParseErrorUtils.java#0 $) $Date: 10-nov-2005.18:59:13 $
Author:
The Oracle ADF Faces Team
See Also:
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

ParseErrorUtils

public ParseErrorUtils()
Method Detail

log

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)
Sends a message to the error log, automatically pulling line and column information from the context

Parameters:
context - the parsing context
message - the string message, if any
e - the associated exception, if any
verbosity - the verbosity level of the problem

log

public 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.

Parameters:
context - the parsing context
message - the string message, if any
e - the associated exception, if any
line - the line number
column - the column number
verbosity - the verbosity level of the problem

getErrorMessage

public 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.

Parameters:
context - the parsing context
message - a base message


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.