org.apache.xalan.xsltc.compiler.util
Class ErrorMsg

java.lang.Object
  extended by org.apache.xalan.xsltc.compiler.util.ErrorMsg

public final class ErrorMsg
extends Object

Author:
Jacek Ambroziak, Santiago Pericas-Geertsen, G. Todd Miller, Erwin Bolwidt , Morten Jorgensen

Field Summary
static String ARGUMENT_CONVERSION_ERR
           
static String ATTR_VAL_TEMPLATE_ERR
           
static String ATTRIBSET_UNDEF_ERR
           
static String CIRCULAR_INCLUDE_ERR
           
static String CIRCULAR_VARIABLE_ERR
           
static String CLASS_NOT_FOUND_ERR
           
static String CMDLINE_OPT_MISSING_ARG_ERR
           
static String COMPILE_STDIN_ERR
           
static String COMPILE_USAGE_STR
           
static String COMPILER_ERROR_KEY
           
static String COMPILER_WARNING_KEY
           
static String CONSTRUCTOR_NOT_FOUND
           
static String COULD_NOT_CREATE_TRANS_FACT
           
static String DATA_CONVERSION_ERR
           
static String DOCUMENT_ARG_ERR
           
static String ELEMENT_PARSE_ERR
           
static String ER_RESULT_NULL
           
static String ERROR_LISTENER_NULL_ERR
           
static String ERROR_MESSAGES_KEY
           
static String ERROR_MSG
           
static String ERROR_PLUS_WRAPPED_MSG
           
static String FATAL_ERR_MSG
           
static String FATAL_ERR_PLUS_WRAPPED_MSG
           
static String FILE_ACCESS_ERR
           
static String FILE_NOT_FOUND_ERR
           
static String FUNCTION_RESOLVE_ERR
           
static String ILLEGAL_ARG_ERR
           
static String ILLEGAL_ATTR_NAME_ERR
           
static String ILLEGAL_ATTRIBUTE_ERR
           
static String ILLEGAL_BINARY_OP_ERR
           
static String ILLEGAL_CHAR_ERR
           
static String ILLEGAL_CHILD_ERR
           
static String ILLEGAL_CMDLINE_OPTION_ERR
           
static String ILLEGAL_ELEM_NAME_ERR
           
static String ILLEGAL_PI_ERR
           
static String ILLEGAL_RELAT_OP_ERR
           
static String ILLEGAL_TEXT_NODE_ERR
           
static String INTERNAL_ERR
           
static String INVALID_METHOD_IN_OUTPUT
           
static String INVALID_NCNAME_ERR
           
static String INVALID_QNAME_ERR
           
static String INVALID_URI_ERR
           
static String JAXP_COMPILE_ERR
           
static String JAXP_GET_FEATURE_NULL_NAME
           
static String JAXP_INVALID_ATTR_ERR
           
static String JAXP_INVALID_SET_PARAM_VALUE
           
static String JAXP_NO_HANDLER_ERR
           
static String JAXP_NO_RESULT_ERR
           
static String JAXP_NO_SOURCE_ERR
           
static String JAXP_NO_TRANSLET_ERR
           
static String JAXP_SET_FEATURE_NULL_NAME
           
static String JAXP_SET_RESULT_ERR
           
static String JAXP_UNKNOWN_PROP_ERR
           
static String JAXP_UNKNOWN_SOURCE_ERR
           
static String JAXP_UNSUPPORTED_FEATURE
           
static String KEY_USE_ATTR_ERR
           
static String METHOD_NOT_FOUND_ERR
           
static String MISSING_ROOT_ERR
           
static String MISSING_WHEN_ERR
           
static String MISSING_XSLT_TARGET_ERR
           
static String MISSING_XSLT_URI_ERR
           
static String MULTIPLE_OTHERWISE_ERR
           
static String MULTIPLE_STYLESHEET_ERR
           
static String NAMESPACE_UNDEF_ERR
           
static String NEED_LITERAL_ERR
           
static String NO_JAVA_FUNCT_THIS_REF
           
static String NO_MAIN_TRANSLET_ERR
           
static String NO_TRANSLET_CLASS_ERR
           
static String NOT_IMPLEMENTED_ERR
           
static String NOT_STYLESHEET_ERR
           
static String OUTPUT_VERSION_ERR
           
static String REQUIRED_ATTR_ERR
           
static String RESULT_TREE_SORT_ERR
           
static String RUNTIME_ERROR_KEY
           
static String SAX_PARSER_CONFIG_ERR
           
static String SAX2DOM_ADAPTER_ERR
           
static String STRAY_ATTRIBUTE_ERR
           
static String STRAY_OTHERWISE_ERR
           
static String STRAY_SORT_ERR
           
static String STRAY_WHEN_ERR
           
static String SYMBOLS_REDEF_ERR
           
static String SYNTAX_ERR
           
static String TEMPLATE_REDEF_ERR
           
static String TEMPLATE_UNDEF_ERR
           
static String TRANSFORM_USAGE_STR
           
static String TRANSFORM_WITH_JAR_STR
           
static String TRANSFORM_WITH_TRANSLET_STR
           
static String TRANSLET_CLASS_ERR
           
static String TRANSLET_NAME_JAVA_CONFLICT
           
static String TRANSLET_OBJECT_ERR
           
static String TYPE_CHECK_ERR
           
static String TYPE_CHECK_UNK_LOC_ERR
           
static String UNKNOWN_SIG_TYPE_ERR
           
static String UNNAMED_ATTRIBSET_ERR
           
static String UNSUPPORTED_ENCODING
           
static String UNSUPPORTED_EXT_ERR
           
static String UNSUPPORTED_XSL_ERR
           
static String VARIABLE_REDEF_ERR
           
static String VARIABLE_UNDEF_ERR
           
static String WARNING_MSG
           
static String WARNING_PLUS_WRAPPED_MSG
           
static String WHEN_ELEMENT_ERR
           
static String XPATH_PARSER_ERR
           
static String XSL_VERSION_ERR
           
static String XSLTC_SOURCE_ERR
           
 
Constructor Summary
ErrorMsg(String code)
           
ErrorMsg(String message, int line)
           
ErrorMsg(String code, int line, Object param)
           
ErrorMsg(String code, Object param)
           
ErrorMsg(String code, Object param1, Object param2)
           
ErrorMsg(String code, Object param1, Object param2, SyntaxTreeNode node)
           
ErrorMsg(String code, Object param1, SyntaxTreeNode node)
           
ErrorMsg(String code, SyntaxTreeNode node)
           
ErrorMsg(Throwable e)
           
 
Method Summary
 boolean isWarningError()
           
 void setWarningError(boolean flag)
           
 String toString()
          This version of toString() uses the _params instance variable to format the message.
 String toString(Object obj)
           
 String toString(Object obj0, Object obj1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MULTIPLE_STYLESHEET_ERR

public static final String MULTIPLE_STYLESHEET_ERR
See Also:
Constant Field Values

TEMPLATE_REDEF_ERR

public static final String TEMPLATE_REDEF_ERR
See Also:
Constant Field Values

TEMPLATE_UNDEF_ERR

public static final String TEMPLATE_UNDEF_ERR
See Also:
Constant Field Values

VARIABLE_REDEF_ERR

public static final String VARIABLE_REDEF_ERR
See Also:
Constant Field Values

VARIABLE_UNDEF_ERR

public static final String VARIABLE_UNDEF_ERR
See Also:
Constant Field Values

CLASS_NOT_FOUND_ERR

public static final String CLASS_NOT_FOUND_ERR
See Also:
Constant Field Values

METHOD_NOT_FOUND_ERR

public static final String METHOD_NOT_FOUND_ERR
See Also:
Constant Field Values

ARGUMENT_CONVERSION_ERR

public static final String ARGUMENT_CONVERSION_ERR
See Also:
Constant Field Values

FILE_NOT_FOUND_ERR

public static final String FILE_NOT_FOUND_ERR
See Also:
Constant Field Values

INVALID_URI_ERR

public static final String INVALID_URI_ERR
See Also:
Constant Field Values

FILE_ACCESS_ERR

public static final String FILE_ACCESS_ERR
See Also:
Constant Field Values

MISSING_ROOT_ERR

public static final String MISSING_ROOT_ERR
See Also:
Constant Field Values

NAMESPACE_UNDEF_ERR

public static final String NAMESPACE_UNDEF_ERR
See Also:
Constant Field Values

FUNCTION_RESOLVE_ERR

public static final String FUNCTION_RESOLVE_ERR
See Also:
Constant Field Values

NEED_LITERAL_ERR

public static final String NEED_LITERAL_ERR
See Also:
Constant Field Values

XPATH_PARSER_ERR

public static final String XPATH_PARSER_ERR
See Also:
Constant Field Values

REQUIRED_ATTR_ERR

public static final String REQUIRED_ATTR_ERR
See Also:
Constant Field Values

ILLEGAL_CHAR_ERR

public static final String ILLEGAL_CHAR_ERR
See Also:
Constant Field Values

ILLEGAL_PI_ERR

public static final String ILLEGAL_PI_ERR
See Also:
Constant Field Values

STRAY_ATTRIBUTE_ERR

public static final String STRAY_ATTRIBUTE_ERR
See Also:
Constant Field Values

ILLEGAL_ATTRIBUTE_ERR

public static final String ILLEGAL_ATTRIBUTE_ERR
See Also:
Constant Field Values

CIRCULAR_INCLUDE_ERR

public static final String CIRCULAR_INCLUDE_ERR
See Also:
Constant Field Values

RESULT_TREE_SORT_ERR

public static final String RESULT_TREE_SORT_ERR
See Also:
Constant Field Values

SYMBOLS_REDEF_ERR

public static final String SYMBOLS_REDEF_ERR
See Also:
Constant Field Values

XSL_VERSION_ERR

public static final String XSL_VERSION_ERR
See Also:
Constant Field Values

CIRCULAR_VARIABLE_ERR

public static final String CIRCULAR_VARIABLE_ERR
See Also:
Constant Field Values

ILLEGAL_BINARY_OP_ERR

public static final String ILLEGAL_BINARY_OP_ERR
See Also:
Constant Field Values

ILLEGAL_ARG_ERR

public static final String ILLEGAL_ARG_ERR
See Also:
Constant Field Values

DOCUMENT_ARG_ERR

public static final String DOCUMENT_ARG_ERR
See Also:
Constant Field Values

MISSING_WHEN_ERR

public static final String MISSING_WHEN_ERR
See Also:
Constant Field Values

MULTIPLE_OTHERWISE_ERR

public static final String MULTIPLE_OTHERWISE_ERR
See Also:
Constant Field Values

STRAY_OTHERWISE_ERR

public static final String STRAY_OTHERWISE_ERR
See Also:
Constant Field Values

STRAY_WHEN_ERR

public static final String STRAY_WHEN_ERR
See Also:
Constant Field Values

WHEN_ELEMENT_ERR

public static final String WHEN_ELEMENT_ERR
See Also:
Constant Field Values

UNNAMED_ATTRIBSET_ERR

public static final String UNNAMED_ATTRIBSET_ERR
See Also:
Constant Field Values

ILLEGAL_CHILD_ERR

public static final String ILLEGAL_CHILD_ERR
See Also:
Constant Field Values

ILLEGAL_ELEM_NAME_ERR

public static final String ILLEGAL_ELEM_NAME_ERR
See Also:
Constant Field Values

ILLEGAL_ATTR_NAME_ERR

public static final String ILLEGAL_ATTR_NAME_ERR
See Also:
Constant Field Values

ILLEGAL_TEXT_NODE_ERR

public static final String ILLEGAL_TEXT_NODE_ERR
See Also:
Constant Field Values

SAX_PARSER_CONFIG_ERR

public static final String SAX_PARSER_CONFIG_ERR
See Also:
Constant Field Values

INTERNAL_ERR

public static final String INTERNAL_ERR
See Also:
Constant Field Values

UNSUPPORTED_XSL_ERR

public static final String UNSUPPORTED_XSL_ERR
See Also:
Constant Field Values

UNSUPPORTED_EXT_ERR

public static final String UNSUPPORTED_EXT_ERR
See Also:
Constant Field Values

MISSING_XSLT_URI_ERR

public static final String MISSING_XSLT_URI_ERR
See Also:
Constant Field Values

MISSING_XSLT_TARGET_ERR

public static final String MISSING_XSLT_TARGET_ERR
See Also:
Constant Field Values

NOT_IMPLEMENTED_ERR

public static final String NOT_IMPLEMENTED_ERR
See Also:
Constant Field Values

NOT_STYLESHEET_ERR

public static final String NOT_STYLESHEET_ERR
See Also:
Constant Field Values

ELEMENT_PARSE_ERR

public static final String ELEMENT_PARSE_ERR
See Also:
Constant Field Values

KEY_USE_ATTR_ERR

public static final String KEY_USE_ATTR_ERR
See Also:
Constant Field Values

OUTPUT_VERSION_ERR

public static final String OUTPUT_VERSION_ERR
See Also:
Constant Field Values

ILLEGAL_RELAT_OP_ERR

public static final String ILLEGAL_RELAT_OP_ERR
See Also:
Constant Field Values

ATTRIBSET_UNDEF_ERR

public static final String ATTRIBSET_UNDEF_ERR
See Also:
Constant Field Values

ATTR_VAL_TEMPLATE_ERR

public static final String ATTR_VAL_TEMPLATE_ERR
See Also:
Constant Field Values

UNKNOWN_SIG_TYPE_ERR

public static final String UNKNOWN_SIG_TYPE_ERR
See Also:
Constant Field Values

DATA_CONVERSION_ERR

public static final String DATA_CONVERSION_ERR
See Also:
Constant Field Values

NO_TRANSLET_CLASS_ERR

public static final String NO_TRANSLET_CLASS_ERR
See Also:
Constant Field Values

NO_MAIN_TRANSLET_ERR

public static final String NO_MAIN_TRANSLET_ERR
See Also:
Constant Field Values

TRANSLET_CLASS_ERR

public static final String TRANSLET_CLASS_ERR
See Also:
Constant Field Values

TRANSLET_OBJECT_ERR

public static final String TRANSLET_OBJECT_ERR
See Also:
Constant Field Values

ERROR_LISTENER_NULL_ERR

public static final String ERROR_LISTENER_NULL_ERR
See Also:
Constant Field Values

JAXP_UNKNOWN_SOURCE_ERR

public static final String JAXP_UNKNOWN_SOURCE_ERR
See Also:
Constant Field Values

JAXP_NO_SOURCE_ERR

public static final String JAXP_NO_SOURCE_ERR
See Also:
Constant Field Values

JAXP_COMPILE_ERR

public static final String JAXP_COMPILE_ERR
See Also:
Constant Field Values

JAXP_INVALID_ATTR_ERR

public static final String JAXP_INVALID_ATTR_ERR
See Also:
Constant Field Values

JAXP_SET_RESULT_ERR

public static final String JAXP_SET_RESULT_ERR
See Also:
Constant Field Values

JAXP_NO_TRANSLET_ERR

public static final String JAXP_NO_TRANSLET_ERR
See Also:
Constant Field Values

JAXP_NO_HANDLER_ERR

public static final String JAXP_NO_HANDLER_ERR
See Also:
Constant Field Values

JAXP_NO_RESULT_ERR

public static final String JAXP_NO_RESULT_ERR
See Also:
Constant Field Values

JAXP_UNKNOWN_PROP_ERR

public static final String JAXP_UNKNOWN_PROP_ERR
See Also:
Constant Field Values

SAX2DOM_ADAPTER_ERR

public static final String SAX2DOM_ADAPTER_ERR
See Also:
Constant Field Values

XSLTC_SOURCE_ERR

public static final String XSLTC_SOURCE_ERR
See Also:
Constant Field Values

ER_RESULT_NULL

public static final String ER_RESULT_NULL
See Also:
Constant Field Values

JAXP_INVALID_SET_PARAM_VALUE

public static final String JAXP_INVALID_SET_PARAM_VALUE
See Also:
Constant Field Values

JAXP_SET_FEATURE_NULL_NAME

public static final String JAXP_SET_FEATURE_NULL_NAME
See Also:
Constant Field Values

JAXP_GET_FEATURE_NULL_NAME

public static final String JAXP_GET_FEATURE_NULL_NAME
See Also:
Constant Field Values

JAXP_UNSUPPORTED_FEATURE

public static final String JAXP_UNSUPPORTED_FEATURE
See Also:
Constant Field Values

COMPILE_STDIN_ERR

public static final String COMPILE_STDIN_ERR
See Also:
Constant Field Values

COMPILE_USAGE_STR

public static final String COMPILE_USAGE_STR
See Also:
Constant Field Values

TRANSFORM_USAGE_STR

public static final String TRANSFORM_USAGE_STR
See Also:
Constant Field Values

STRAY_SORT_ERR

public static final String STRAY_SORT_ERR
See Also:
Constant Field Values

UNSUPPORTED_ENCODING

public static final String UNSUPPORTED_ENCODING
See Also:
Constant Field Values

SYNTAX_ERR

public static final String SYNTAX_ERR
See Also:
Constant Field Values

CONSTRUCTOR_NOT_FOUND

public static final String CONSTRUCTOR_NOT_FOUND
See Also:
Constant Field Values

NO_JAVA_FUNCT_THIS_REF

public static final String NO_JAVA_FUNCT_THIS_REF
See Also:
Constant Field Values

TYPE_CHECK_ERR

public static final String TYPE_CHECK_ERR
See Also:
Constant Field Values

TYPE_CHECK_UNK_LOC_ERR

public static final String TYPE_CHECK_UNK_LOC_ERR
See Also:
Constant Field Values

ILLEGAL_CMDLINE_OPTION_ERR

public static final String ILLEGAL_CMDLINE_OPTION_ERR
See Also:
Constant Field Values

CMDLINE_OPT_MISSING_ARG_ERR

public static final String CMDLINE_OPT_MISSING_ARG_ERR
See Also:
Constant Field Values

WARNING_PLUS_WRAPPED_MSG

public static final String WARNING_PLUS_WRAPPED_MSG
See Also:
Constant Field Values

WARNING_MSG

public static final String WARNING_MSG
See Also:
Constant Field Values

FATAL_ERR_PLUS_WRAPPED_MSG

public static final String FATAL_ERR_PLUS_WRAPPED_MSG
See Also:
Constant Field Values

FATAL_ERR_MSG

public static final String FATAL_ERR_MSG
See Also:
Constant Field Values

ERROR_PLUS_WRAPPED_MSG

public static final String ERROR_PLUS_WRAPPED_MSG
See Also:
Constant Field Values

ERROR_MSG

public static final String ERROR_MSG
See Also:
Constant Field Values

TRANSFORM_WITH_TRANSLET_STR

public static final String TRANSFORM_WITH_TRANSLET_STR
See Also:
Constant Field Values

TRANSFORM_WITH_JAR_STR

public static final String TRANSFORM_WITH_JAR_STR
See Also:
Constant Field Values

COULD_NOT_CREATE_TRANS_FACT

public static final String COULD_NOT_CREATE_TRANS_FACT
See Also:
Constant Field Values

TRANSLET_NAME_JAVA_CONFLICT

public static final String TRANSLET_NAME_JAVA_CONFLICT
See Also:
Constant Field Values

INVALID_QNAME_ERR

public static final String INVALID_QNAME_ERR
See Also:
Constant Field Values

INVALID_NCNAME_ERR

public static final String INVALID_NCNAME_ERR
See Also:
Constant Field Values

INVALID_METHOD_IN_OUTPUT

public static final String INVALID_METHOD_IN_OUTPUT
See Also:
Constant Field Values

ERROR_MESSAGES_KEY

public static final String ERROR_MESSAGES_KEY
See Also:
Constant Field Values

COMPILER_ERROR_KEY

public static final String COMPILER_ERROR_KEY
See Also:
Constant Field Values

COMPILER_WARNING_KEY

public static final String COMPILER_WARNING_KEY
See Also:
Constant Field Values

RUNTIME_ERROR_KEY

public static final String RUNTIME_ERROR_KEY
See Also:
Constant Field Values
Constructor Detail

ErrorMsg

public ErrorMsg(String code)

ErrorMsg

public ErrorMsg(Throwable e)

ErrorMsg

public ErrorMsg(String message,
                int line)

ErrorMsg

public ErrorMsg(String code,
                int line,
                Object param)

ErrorMsg

public ErrorMsg(String code,
                Object param)

ErrorMsg

public ErrorMsg(String code,
                Object param1,
                Object param2)

ErrorMsg

public ErrorMsg(String code,
                SyntaxTreeNode node)

ErrorMsg

public ErrorMsg(String code,
                Object param1,
                SyntaxTreeNode node)

ErrorMsg

public ErrorMsg(String code,
                Object param1,
                Object param2,
                SyntaxTreeNode node)
Method Detail

toString

public String toString()
This version of toString() uses the _params instance variable to format the message. If the _code is negative the use _message as the error string.

Overrides:
toString in class Object

toString

public String toString(Object obj)

toString

public String toString(Object obj0,
                       Object obj1)

setWarningError

public void setWarningError(boolean flag)

isWarningError

public boolean isWarningError()


Copyright ? 2005 Apache XML Project. All Rights Reserved.