Package onep :: Package core :: Package exception :: Module OnepException :: Class OnepException
[frames] | no frames]

Class OnepException


OnepException represents a general exception to be thrown by ONE-P API when
 an unrecoverable error is encountered.

This general exception is meant to be used as a fallback when the cause of error 
cannot be determined. In the situation when the cause is known, the  
derived exception from this one should be used to provide more specific 
information. Class for handling exceptions generated by Illegal arguments.

Instance Methods
 
__init__(self, arg_string=None, arg_cause=None)
Constructor of OnepException.

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, arg_string=None, arg_cause=None)
(Constructor)

 
Constructor of OnepException.

This calls the basic Exception class in pyton.Constructs a new exception with
default message as its detail message. If additional parameters are passed then
those parameters will be displayed as part of error message depending on its type

Parameters:
        arg_string: This is the error message.
        arg_cause : This is the class object which has more information
                                regarding the issue.

Overrides: object.__init__