org.aitools.programd.multiplexor
Class NoSuchPredicateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.aitools.programd.multiplexor.NoSuchPredicateException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchPredicateException
extends java.lang.Exception

Indicates that there is no predicate with a requested name.

See Also:
Serialized Form

Field Summary
private static int index
          The index at which there was no value.
private static java.lang.String name
          The name for which there was no predicate.
 
Constructor Summary
NoSuchPredicateException(java.lang.String predicateName)
          Constructs a new NoSuchPredicateException for the given name.
NoSuchPredicateException(java.lang.String predicateName, int predicateIndex)
          Constructs a new NoSuchPredicateException for the given name and index.
 
Method Summary
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private static java.lang.String name
The name for which there was no predicate.


index

private static int index
The index at which there was no value.

Constructor Detail

NoSuchPredicateException

public NoSuchPredicateException(java.lang.String predicateName)
Constructs a new NoSuchPredicateException for the given name.

Parameters:
predicateName - the name for which there was no predicate

NoSuchPredicateException

public NoSuchPredicateException(java.lang.String predicateName,
                                int predicateIndex)
Constructs a new NoSuchPredicateException for the given name and index.

Parameters:
predicateName - the name for which there was no predicate with a value at the given index
predicateIndex - the index at which there was no value
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable
See Also:
Throwable.getMessage()