codesimian
Class NatLangMathException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by codesimian.NatLangException
                  extended by codesimian.NatLangMathException
All Implemented Interfaces:
java.io.Serializable

public class NatLangMathException
extends NatLangException

thrown when a Natural-Language algorithm fails to do something related to math. For example, if it tries and fails to understand "57 million and three", it may throw a new NatLangMathException("57 million and three", "Do not understand million"); );

See Also:
Serialized Form

Field Summary
 java.lang.String textNotUnderstand
           
 java.lang.String whyNotUnderstand
           
 
Constructor Summary
NatLangMathException()
           
NatLangMathException(java.lang.String textIDontUnderstand)
           
NatLangMathException(java.lang.String textIDontUnderstand, java.lang.String whyDontIUnderstandIt)
           
NatLangMathException(java.lang.String textIDontUnderstand, java.lang.String whyDontIUnderstandIt, java.lang.Number[] numbers)
           
 
Method Summary
 java.lang.Number[] getAllRelevantNumbers()
           
 
Methods inherited from class codesimian.NatLangException
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

textNotUnderstand

public final java.lang.String textNotUnderstand

whyNotUnderstand

public final java.lang.String whyNotUnderstand
Constructor Detail

NatLangMathException

public NatLangMathException()

NatLangMathException

public NatLangMathException(java.lang.String textIDontUnderstand)

NatLangMathException

public NatLangMathException(java.lang.String textIDontUnderstand,
                            java.lang.String whyDontIUnderstandIt)

NatLangMathException

public NatLangMathException(java.lang.String textIDontUnderstand,
                            java.lang.String whyDontIUnderstandIt,
                            java.lang.Number[] numbers)
Method Detail

getAllRelevantNumbers

public java.lang.Number[] getAllRelevantNumbers()