org.alicebot.server.core
Class NoSuchPredicateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.alicebot.server.core.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

Constructor Summary
NoSuchPredicateException(java.lang.String name)
          Constructs a new NoSuchPredicateException for the given name.
NoSuchPredicateException(java.lang.String name, int index)
          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
 

Constructor Detail

NoSuchPredicateException

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

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

NoSuchPredicateException

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

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

getMessage

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