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

Class OnepDuplicateElementException


Class which handles errors regarding duplicate sessions to the NetworkElement.

An application can have only one session with a given NetworkElement. A NetworkElement can have multiple interfaces and IP addresses. If the application is connected to the NetworkElement using one IP address, and then attempts to connect to the NetworkElement using another IP address, connect will fail with this exception. If this happens, the application can use get_original_network_element() method to retrieve the already connected NetworkElement instance.

Instance Methods
 
__init__(self, arg_networkElement, arg_string=None, arg_cause=None)
Default constructor.
 
get_original_network_element(self)
Get the existing NetworkElement instance that's already connected to the network element

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_networkElement, arg_string=None, arg_cause=None)
(Constructor)

 
Default constructor. Constructs a new exception with default message as
its detail message.

Parameters:
    arg_networkElement: This is the instance of NetworkElement to which the
                        duplicate session was being initiated.
    arg_string:         This is the error message.
    arg_cause :         This is the class object which has more information
                        regarding the issue.

Overrides: object.__init__

get_original_network_element(self)

 
Get the existing NetworkElement instance that's already connected
to the network element
    
Returns:
    The existing NetworkElement instance