Class MathIllegalNumberException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.apache.commons.math3.exception.MathIllegalArgumentException
                      extended by org.apache.commons.math3.exception.MathIllegalNumberException
All Implemented Interfaces:
Serializable, ExceptionContextProvider
Direct Known Subclasses:
DimensionMismatchException, NonMonotonicSequenceException, NotANumberException, NotFiniteNumberException, NumberIsTooLargeException, NumberIsTooSmallException, OutOfRangeException, ZeroException

public class MathIllegalNumberException
extends MathIllegalArgumentException

Base class for exceptions raised by a wrong number. This class is not intended to be instantiated directly: it should serve as a base class to create all the exceptions that are raised because some precondition is violated by a number argument.

$Id: 1364378 2012-07-22 17:42:38Z tn $
See Also:
Serialized Form

Constructor Summary
protected MathIllegalNumberException(Localizable pattern, Number wrong, Object... arguments)
          Construct an exception.
Method Summary
 Number getArgument()
Methods inherited from class org.apache.commons.math3.exception.MathIllegalArgumentException
getContext, getLocalizedMessage, getMessage
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


protected MathIllegalNumberException(Localizable pattern,
                                     Number wrong,
                                     Object... arguments)
Construct an exception.

pattern - Localizable pattern.
wrong - Wrong number.
arguments - Arguments.
Method Detail


public Number getArgument()
the requested value.

Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.