irfpy.util.exception

Handling irfpy exception and error.

It is recommended to define an exception calss for irfpy project. Here is the one. PyanaError will provide easy-to-use error handling class.

>>> try:
...     raise IrfpyError('This is a error')
... except IrfpyError as e:
...     print('Exception handled: {}'.format(e))
Exception handled: 'This is a error'

IrfpyException(value)

Base class for exception of Irfpy.

IrfpyError(value)

Base class for error of Irfpy.

exception irfpy.util.exception.IrfpyException(value)[source]

Bases: Exception

Base class for exception of Irfpy.

The exception can be raised whenever error has happened. Developers may extend this exception class.

exception irfpy.util.exception.IrfpyError(value)[source]

Bases: Exception

Base class for error of Irfpy.

The error can be raised whenever error has happened. Developers may extend this error class.

irfpy.util.exception.PyanaException

Alias of IrfpyException. Do not use this for new implementation

irfpy.util.exception.PyanaError

Alias of IrfpyError. Do not use this for new implementation