exceptions.py
Others:
This definition returns the inner most frame of given traceback.
| Parameters: | trcback – Traceback. ( Traceback ) |
|---|---|
| Returns: | Frame. ( Frame ) |
This definition extracts the stack from given frame while excluded any symbolized frame.
| Parameters: |
|
|---|---|
| Returns: | Stack. ( List ) |
This definition extracts the arguments from given frame.
| Parameters: | frame – Frame. ( Object ) |
|---|---|
| Returns: | Arguments. ( Tuple ) |
This definition extracts the frames locals of given traceback.
| Parameters: | trcback – Traceback. ( Traceback ) |
|---|---|
| Returns: | Frames locals. ( List ) |
This definition extracts the exception from given arguments or from sys.exc_info().
| Parameters: | *args – Arguments. ( * ) |
|---|---|
| Returns: | Extracted exception. ( Tuple ) |
| Parameters: |
|
|---|---|
| Returns: | Formated exception. ( List ) |
This definition formats a report using given exception.
| Parameters: |
|
|---|---|
| Returns: | Formated report. ( Tuple ) |
This definition provides the base exception handler.
| Parameters: | *args – Arguments. ( * ) |
|---|---|
| Returns: | Definition success. ( Boolean ) |
This definition installs the given exceptions handler.
| Parameters: | handler – Exception handler. ( Object ) |
|---|---|
| Returns: | Definition success. ( Boolean ) |
This definition uninstalls the exceptions handler.
| Returns: | Definition success. ( Boolean ) |
|---|
Usage:
@handleExceptions(ZeroDivisionError)
def raiseAnException(value):
'''
This definition raises a 'ZeroDivisionError' exception.
'''
return value / 0
:param \*args: Arguments. ( \* )
| Returns: | Object. ( Object ) |
|---|
Bases: exceptions.Exception
This class is the abstract base class for all Foundations package exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is used for execution exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is used to break nested loop iterations.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for parsing related exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractParsingError
This class is used for exceptions raised while parsing file structure.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractParsingError
This class is used for exceptions raised while parsing attribute structure.
| Parameters: |
|
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for os related exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractOsError
This class is used for non existing path exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.PathExistsError
This class is used for non existing directory exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.PathExistsError
This class is used for non existing file exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for object related exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractObjectError
This class is used for invalid object type exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractObjectError
This class is used for non existing object exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for user related exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractUserError
This class is used for programming exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractUserError
This class is used for user exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for Node related exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractNodeError, foundations.exceptions.ObjectTypeError
This class is the abstract base class for Node attributes type related exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractNodeError, foundations.exceptions.ObjectExistsError
This class is used for non existing Node attribute exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for library module exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractLibraryError
This class is used for library module library.Library class instantiation exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractLibraryError
This class is used for library module library.Library class initialization exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractLibraryError
This class is used for library module library.Library class execution exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractError
This class is the abstract base class for tcpServer module exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|
Bases: foundations.exceptions.AbstractServerError
This class is used for tcpServer module tcpServer.TCPServer class operations exceptions.
| Parameters: | value – Error value or message. ( String ) |
|---|