org.ucl.xpath
Class StaticError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.ucl.xpath.XPathException
              extended byorg.ucl.xpath.StaticError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StaticNameError, XPathParserException

public class StaticError
extends XPathException

Base class for all static errors as defined by the XPath 2.0 specification

See Also:
Serialized Form

Constructor Summary
StaticError(java.lang.String code, java.lang.String err)
          Constructor for a generic static error
 
Method Summary
 java.lang.String code()
           
 
Methods inherited from class org.ucl.xpath.XPathException
reason
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticError

public StaticError(java.lang.String code,
                   java.lang.String err)
Constructor for a generic static error

Parameters:
code - The error code as specified in XPath 2.0
err - Humar readable error message
Method Detail

code

public java.lang.String code()
Returns:
error code which represents the error