pypago.disp

Module that handles output of errors and log messages

Exceptions

PypagoErrors(message) This class is made to handle errors/warnings in PyPAGO
exception PypagoErrors(message)[source]

This class is made to handle errors/warnings in PyPAGO

Parameters:
  • message (str) – Message to print in the error (value of the exception)
  • type (str) – A string to indicate what kind of errors is raised (should be ‘Warning’ or ‘Error’).
_make_str()[source]

Function which handles the creation of an error/warning message containing the name of the exception, of the .py file, the line number and the line content that raised the exception/warning.

Inspired from Apogentus answer <http://stackoverflow.com/questions/14519177/python-exception-handling-line-number>