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

Class OnepRemoteProcedureException


The exception is thrown to indicate error has occurred in the remote procedure call made to a network element.

Instance Methods
 
__init__(self, remote_cause=None)
Constructor of OnepException.
 
get_error_code(self)
Get the error code that returns from the remote procedure call.

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, remote_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__
(inherited documentation)

get_error_code(self)

 

Get the error code that returns from the remote procedure call.

Returns:
    The error Code from the remote procedure call.