Skip to content

InvalidBoundsError(low, high) Source

Bases: NumdaplotError

Raised when the low bound is greater than the high bound, or when both cannot be compared.

Added in version 0.1.0

Parameters:

  • low (object)

    The rejected low bound.

  • high (object)

    The rejected high bound.

Attributes:

  • low

    The rejected low bound.

  • high

    The rejected high bound.

Examples:

import numdaplot as ndp

try:
    ndp.Between(low=20, high=10)
except ndp.InvalidBoundsError as error:
    print(error)
# Expected comparable bounds with low <= high, got low=20 and high=10.