Class SpellerOutOfRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.spellengine.exception.SpellerException
com.aquima.interactions.spellengine.exception.SpellerOutOfRangeException
- All Implemented Interfaces:
Serializable
Exception to be used when an integer could not be spelled due to its range limitations.
- Since:
- 6.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpellerOutOfRangeException
(long longValue, String spellerName, IRangeValue range) Construct an instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SpellerOutOfRangeException
Construct an instance.- Parameters:
longValue
- The value tried to spell.spellerName
- The name of the speller that is used.range
- The range limit.
-
-
Method Details
-
getValue
public long getValue()This method returns the value that is tried to spell.- Returns:
- The value.
-
getSpellerName
This method returns the name of the speller that threw the exception.- Returns:
- The speller name.
-
getRange
The range limit of the speller that threw the exception.- Returns:
- The range limit.
-