Class NotPositiveException

All Implemented Interfaces:
Serializable, ExceptionContextProvider

public class NotPositiveException extends NumberIsTooSmallException
Exception to be thrown when the argument is negative.
Since:
2.2
See Also:
  • Constructor Details

    • NotPositiveException

      public NotPositiveException(Number value)
      Construct the exception.
      Parameters:
      value - Argument.
    • NotPositiveException

      public NotPositiveException(Localizable specific, Number value)
      Construct the exception with a specific context.
      Parameters:
      specific - Specific context where the error occurred.
      value - Argument.