org.quattor.pan.exceptions
Class InvalidTermException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.quattor.pan.exceptions.InvalidTermException
All Implemented Interfaces:
java.io.Serializable

public class InvalidTermException
extends java.lang.Exception

Exceptions of this type are thrown when an invalid term is encountered. Either when an index is found where a key is expected or vice versa. This exception must be caught and should not be visible to the end user. This is intended to allow a better error message to be generated by collecting information up the call stack.

Author:
loomis
See Also:
Serialized Form

Constructor Summary
InvalidTermException(java.lang.String message)
           
 
Method Summary
 java.lang.String formatMessage(Path path)
           
 java.lang.String formatVariableMessage(java.lang.String name, Term[] terms)
           
 InvalidTermException setInfo(Term[] terms, int index, java.lang.String actualType)
           
 InvalidTermException setVariableInfo(java.util.List<Term> terms, int index, java.lang.String actualType)
           
 
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

InvalidTermException

public InvalidTermException(java.lang.String message)
Method Detail

setInfo

public InvalidTermException setInfo(Term[] terms,
                                    int index,
                                    java.lang.String actualType)

setVariableInfo

public InvalidTermException setVariableInfo(java.util.List<Term> terms,
                                            int index,
                                            java.lang.String actualType)

formatMessage

public java.lang.String formatMessage(Path path)

formatVariableMessage

public java.lang.String formatVariableMessage(java.lang.String name,
                                              Term[] terms)


Copyright © 2011 Quattor. All Rights Reserved.