Python LMF library
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
pylmflib.pylmflib.utils.error_handling.Error Class Reference

Base class for exceptions in this library. More...

Inheritance diagram for pylmflib.pylmflib.utils.error_handling.Error:
pylmflib.pylmflib.utils.error_handling.InputError pylmflib.pylmflib.utils.error_handling.OutputError

Public Member Functions

def __init__
 Constructor. More...
 
def __str__
 Build the string to be displayed. More...
 
def handle
 Define behavior to follow in case this error is caught: diplay error and exit program. More...
 

Public Attributes

 msg
 
 excp
 
 frame_info
 

Detailed Description

Base class for exceptions in this library.

Definition at line 6 of file error_handling.py.

Constructor & Destructor Documentation

def pylmflib.pylmflib.utils.error_handling.Error.__init__ (   self,
  msg,
  excp = None 
)

Constructor.

Parameters
msgString to be reported to user.
excpRaised system exception if any: IOError, KeyboardInterrupt, SystemExit, IndexError, KeyError, AttributeError, TypeError, NameError, UnboundLocalError, ValueError.
Returns
An Error instance.

Definition at line 9 of file error_handling.py.

Member Function Documentation

def pylmflib.pylmflib.utils.error_handling.Error.__str__ (   self)

Build the string to be displayed.

Returns
A Python string.

Definition at line 21 of file error_handling.py.

def pylmflib.pylmflib.utils.error_handling.Error.handle (   self)

Define behavior to follow in case this error is caught: diplay error and exit program.

Definition at line 33 of file error_handling.py.

Member Data Documentation

pylmflib.pylmflib.utils.error_handling.Error.excp

Definition at line 16 of file error_handling.py.

pylmflib.pylmflib.utils.error_handling.Error.frame_info

Definition at line 19 of file error_handling.py.

pylmflib.pylmflib.utils.error_handling.Error.msg

Definition at line 15 of file error_handling.py.


The documentation for this class was generated from the following file: