org.quattor.pan.exceptions
Class InvalidTermException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.quattor.pan.exceptions.InvalidTermException
- All Implemented Interfaces:
- Serializable
public class InvalidTermException
- extends 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 |
InvalidTermException
public InvalidTermException(String message)
setInfo
public InvalidTermException setInfo(Term[] terms,
int index,
String actualType)
setVariableInfo
public InvalidTermException setVariableInfo(List<Term> terms,
int index,
String actualType)
formatMessage
public String formatMessage(Path path)
formatVariableMessage
public String formatVariableMessage(String name,
Term[] terms)
Copyright © 2012 Quattor. All Rights Reserved.