org.aitools.programd.util
Class NotAnAIMLPatternException

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

public class NotAnAIMLPatternException
extends java.lang.Exception

Thrown by PatternArbiter when it gets a pattern candidate that does not meet the definition of an AIML pattern.

Author:
Noel Bush
See Also:
Serialized Form

Field Summary
private static java.lang.String MSG_PART_ONE
          First part of a message.
private static java.lang.String MSG_PART_TWO
          Second part of a message.
private  java.lang.String pattern
          The pattern which this exception concerns.
 
Constructor Summary
NotAnAIMLPatternException(java.lang.String message, java.lang.String patternToUse)
          Records the pattern and error message for this exception.
 
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

pattern

private java.lang.String pattern
The pattern which this exception concerns.


MSG_PART_ONE

private static final java.lang.String MSG_PART_ONE
First part of a message.

See Also:
Constant Field Values

MSG_PART_TWO

private static final java.lang.String MSG_PART_TWO
Second part of a message.

See Also:
Constant Field Values
Constructor Detail

NotAnAIMLPatternException

public NotAnAIMLPatternException(java.lang.String message,
                                 java.lang.String patternToUse)
Records the pattern and error message for this exception.

Parameters:
message - the explanation why this pattern is invalid
patternToUse - the pattern itself
Method Detail

getMessage

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