Class NotPositiveException

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
  • Constructor Details

    • NotPositiveException

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

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