Class NotPositiveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
- All Implemented Interfaces:
java.io.Serializable,ExceptionContextProvider
public class NotPositiveException extends NumberIsTooSmallException
Exception to be thrown when the argument is negative.
- Since:
- 2.2
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.apache.commons.math4.exception.MathIllegalNumberException
INTEGER_ZERO -
Constructor Summary
Constructors Constructor Description NotPositiveException(java.lang.Number value)Construct the exception.NotPositiveException(Localizable specific, java.lang.Number value)Construct the exception with a specific context. -
Method Summary
Methods inherited from class org.apache.commons.math4.exception.NumberIsTooSmallException
getBoundIsAllowed, getMinMethods inherited from class org.apache.commons.math4.exception.MathIllegalNumberException
getArgumentMethods inherited from class org.apache.commons.math4.exception.MathRuntimeException
getContext, getLocalizedMessage, getMessage
-
Constructor Details
-
NotPositiveException
public NotPositiveException(java.lang.Number value)Construct the exception.- Parameters:
value- Argument.
-
NotPositiveException
Construct the exception with a specific context.- Parameters:
specific- Specific context where the error occurred.value- Argument.
-