org.ucl.xpath
Class TypeError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.ucl.xpath.XPathException
              extended byorg.ucl.xpath.TypeError
All Implemented Interfaces:
java.io.Serializable

public class TypeError
extends XPathException

Error caused by bad types.

See Also:
Serialized Form

Constructor Summary
TypeError(java.lang.String code, java.lang.String err)
          Constructor for type error.
 
Method Summary
static TypeError ci_not_node(java.lang.String err)
          "Factory" for building errors
 java.lang.String code()
          Get the error code.
static TypeError invalid_type(java.lang.String err)
          "Factory" for building errors
static TypeError mixed_vals(java.lang.String err)
          "Factory" for building errors
static TypeError step_conatins_atoms(java.lang.String err)
          "Factory" for building errors
 
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

TypeError

public TypeError(java.lang.String code,
                 java.lang.String err)
Constructor for type error.

Parameters:
code - is the error code.
err - is the reason for the error.
Method Detail

code

public java.lang.String code()
Get the error code.

Returns:
The error code.

ci_not_node

public static TypeError ci_not_node(java.lang.String err)
"Factory" for building errors

Parameters:
err - is the reason for the error.
Returns:
the error.

mixed_vals

public static TypeError mixed_vals(java.lang.String err)
"Factory" for building errors

Parameters:
err - is the reason for the error.
Returns:
the error.

step_conatins_atoms

public static TypeError step_conatins_atoms(java.lang.String err)
"Factory" for building errors

Parameters:
err - is the reason for the error.
Returns:
the error.

invalid_type

public static TypeError invalid_type(java.lang.String err)
"Factory" for building errors

Parameters:
err - is the reason for the error.
Returns:
the error.