org.snmp4j.agent
Class DuplicateRegistrationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.snmp4j.agent.MOException
              extended by org.snmp4j.agent.DuplicateRegistrationException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateRegistrationException
extends MOException

A DuplicateRegistrationException is thrown when a managed object registration attempt conflicts with an existing registration because their scope's overlap.

Version:
1.1
Author:
Frank Fock
See Also:
Serialized Form

Constructor Summary
DuplicateRegistrationException()
           
DuplicateRegistrationException(MOScope registrationScope)
           
DuplicateRegistrationException(MOScope registrationScope, MOScope registeredScope)
           
DuplicateRegistrationException(java.lang.String message)
           
 
Method Summary
 MOScope getRegisteredScope()
          Returns the scope that is already registered and overlaps with the scope returned by getRegistrationScope().
 MOScope getRegistrationScope()
          Returns the scope of the failed registration attempt.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateRegistrationException

public DuplicateRegistrationException()

DuplicateRegistrationException

public DuplicateRegistrationException(java.lang.String message)

DuplicateRegistrationException

public DuplicateRegistrationException(MOScope registrationScope)

DuplicateRegistrationException

public DuplicateRegistrationException(MOScope registrationScope,
                                      MOScope registeredScope)
Method Detail

getRegistrationScope

public MOScope getRegistrationScope()
Returns the scope of the failed registration attempt.

Returns:
a MOScope instance, typically a MOContextScope.

getRegisteredScope

public MOScope getRegisteredScope()
Returns the scope that is already registered and overlaps with the scope returned by getRegistrationScope().

Returns:
a MOScope instance.
Since:
1.1

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.