org.snmp4j.agent
Class DuplicateRegistrationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.snmp4j.agent.MOException
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
| 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 |
DuplicateRegistrationException
public DuplicateRegistrationException()
DuplicateRegistrationException
public DuplicateRegistrationException(java.lang.String message)
DuplicateRegistrationException
public DuplicateRegistrationException(MOScope registrationScope)
DuplicateRegistrationException
public DuplicateRegistrationException(MOScope registrationScope,
MOScope registeredScope)
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 © 2011 SNMP4J.org. All Rights Reserved.