codesimian
Class NatLangMathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
codesimian.NatLangException
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
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 |
textNotUnderstand
public final java.lang.String textNotUnderstand
whyNotUnderstand
public final java.lang.String whyNotUnderstand
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)
getAllRelevantNumbers
public java.lang.Number[] getAllRelevantNumbers()