acept.exceptions

Module for exceptions.

Module Contents

exception acept.exceptions.ValueOutsideRangeError(min_value: int, max_value: int, data_type: str = 'DWD TRY')[source]

Bases: ValueError

Exception raised when a value is outside the allowed range.

Initialize the exception, that will be raised when a value is outside the allowed range.

Parameters:
  • min_value (int) – minimum allowed value

  • max_value (int) – maximum allowed value

  • data_type (str) – name of the data type that is checked