exceptions.py
Others:
Returns the inner most frame of given traceback.
Parameters: | trcback (Traceback) – Traceback. |
---|---|
Returns: | Frame. |
Return type: | Frame |
Extracts the stack from given frame while excluded any symbolized frame.
Parameters: | |
---|---|
Returns: | Stack. |
Return type: | list |
Extracts the arguments from given frame.
Parameters: | frame (object) – Frame. |
---|---|
Returns: | Arguments. |
Return type: | tuple |
Extracts the frames locals of given traceback.
Parameters: | trcback (Traceback) – Traceback. |
---|---|
Returns: | Frames locals. |
Return type: | list |
Extracts the exception from given arguments or from sys.exc_info().
Parameters: | *args (*) – Arguments. |
---|---|
Returns: | Extracted exception. |
Return type: | tuple |
Parameters: | |
---|---|
Returns: | Formated exception. |
Return type: | list |
Formats a report using given exception.
Parameters: | |
---|---|
Returns: | Formated report. |
Return type: | tuple |
Provides the base exception handler.
Parameters: | *args (*) – Arguments. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Installs the given exceptions handler.
Parameters: | handler (object) – Exception handler. |
---|---|
Returns: | Definition success. |
Return type: | bool |
Uninstalls the exceptions handler.
Returns: | Definition success. |
---|---|
Return type: | bool |
Usage:
@handleExceptions(ZeroDivisionError)
def raiseAnException(value):
'''
Raises a 'ZeroDivisionError' exception.
'''
return value / 0
:param \*args: Arguments.
:type \*args: \*
Returns: | Object. |
---|---|
Return type: | object |
Bases: exceptions.Exception
Defines the abstract base class for all Foundations package exceptions.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines execution exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Breaks nested loop iteration.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for parsing related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractParsingError
Defines exception raised while parsing file structure.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractParsingError
Defines exception raised while parsing attribute structure.
Initializes the class.
Parameters: |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for io related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines file read exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines file write exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines url read exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines file write exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines directory creation exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines path copy exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractIOError
Defines path remove exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for os related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractOsError
Defines non existing path exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.PathExistsError
Defines non existing directory exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.PathExistsError
Defines non existing file exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for object related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractObjectError
Defines invalid object type exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractObjectError
Defines non existing object exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for user related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractUserError
Defines programming exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractUserError
Defines user exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for Node related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractNodeError, foundations.exceptions.ObjectTypeError
Defines the abstract base class for Node attributes type related exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractNodeError, foundations.exceptions.ObjectExistsError
Defines non existing Node attribute exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for library module exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractLibraryError
Defines library module library.Library class instantiation exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractLibraryError
Defines library module library.Library class initialization exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractLibraryError
Defines library module library.Library class execution exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines the abstract base class for tcpServer module exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractServerError
Defines tcpServer module tcpServer.TCPServer class operations exception.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|
Bases: foundations.exceptions.AbstractError
Defines exception used for non existing ANSI escape codes.
Initializes the class.
Parameters: | value (unicode) – Error value or message. |
---|