- 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
ADuplicateRegistrationExceptionis 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
Constructors Constructor Description DuplicateRegistrationException()DuplicateRegistrationException(java.lang.String message)DuplicateRegistrationException(MOScope registrationScope)DuplicateRegistrationException(MOScope registrationScope, MOScope registeredScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MOScopegetRegisteredScope()Returns the scope that is already registered and overlaps with the scope returned bygetRegistrationScope().MOScopegetRegistrationScope()Returns the scope of the failed registration attempt.
-
-
-
Constructor Detail
-
DuplicateRegistrationException
public DuplicateRegistrationException()
-
DuplicateRegistrationException
public DuplicateRegistrationException(java.lang.String message)
-
DuplicateRegistrationException
public DuplicateRegistrationException(MOScope registrationScope)
-
-
Method Detail
-
getRegistrationScope
public MOScope getRegistrationScope()
Returns the scope of the failed registration attempt.- Returns:
- a
MOScopeinstance, typically aMOContextScope.
-
getRegisteredScope
public MOScope getRegisteredScope()
Returns the scope that is already registered and overlaps with the scope returned bygetRegistrationScope().- Returns:
- a
MOScopeinstance. - Since:
- 1.1
-
-