ENValueError#

module wntr.epanet.exceptions

exception ENValueError[source]#

Bases: EpanetException, ValueError

__init__(code, value, *args, line_num=None, line=None)[source]#

An EPANET exception class that also subclasses ValueError

Parameters:
  • code (int) – The EPANET error code

  • value (Any) – The value that is invalid

  • args (additional non-keyword arguments, optional) – If there is a string-format within the error code’s text, these will be used to replace the format, otherwise they will be output at the end of the Exception message.

  • line_num (int, optional) – The line number, if reading an INP file, by default None

  • line (str, optional) – The contents of the line, by default None

__new__(**kwargs)#