FileDocCategorySizeDatePackage
TypeCheckError.javaAPI DocJava SE 5 API1908Fri Aug 26 14:55:38 BST 2005com.sun.org.apache.xalan.internal.xsltc.compiler.util

TypeCheckError

public class TypeCheckError extends Exception
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen

Fields Summary
ErrorMsg
_error
SyntaxTreeNode
_node
Constructors Summary
public TypeCheckError(SyntaxTreeNode node)

	
       
	super();
	_node = node;
    
public TypeCheckError(ErrorMsg error)

	super();
	_error = error;
    
public TypeCheckError(String code, Object param)

	super();
	_error = new ErrorMsg(code, param);
    
public TypeCheckError(String code, Object param1, Object param2)

	super();
	_error = new ErrorMsg(code, param1, param2);
    
Methods Summary
public com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsggetErrorMsg()

        return _error;
    
public java.lang.StringgetMessage()

        return toString();
    
public java.lang.StringtoString()

	String result;

	if (_error == null) {
            if (_node != null) {
                _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_ERR,
                                      _node.toString());
	    } else {
	        _error = new ErrorMsg(ErrorMsg.TYPE_CHECK_UNK_LOC_ERR);
	    }
        }

	return _error.toString();