Class SpellerOutOfRangeException

All Implemented Interfaces:
Serializable

public class SpellerOutOfRangeException extends SpellerException
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 Details

    • SpellerOutOfRangeException

      public SpellerOutOfRangeException(long longValue, String spellerName, IRangeValue range)
      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

      public String getSpellerName()
      This method returns the name of the speller that threw the exception.
      Returns:
      The speller name.
    • getRange

      public IRangeValue getRange()
      The range limit of the speller that threw the exception.
      Returns:
      The range limit.