org.quattor.pan.exceptions
Class InvalidTermException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
| 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 |
InvalidTermException
public InvalidTermException(java.lang.String message)
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.