java.lang.Object
java.lang.Throwable
java.lang.Exception
org.snmp4j.agent.MOException
org.snmp4j.agent.DuplicateRegistrationException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorDescriptionDuplicateRegistrationException
(String message) DuplicateRegistrationException
(MOScope registrationScope) DuplicateRegistrationException
(MOScope registrationScope, MOScope registeredScope) -
Method Summary
Modifier and TypeMethodDescriptionReturns the scope that is already registered and overlaps with the scope returned bygetRegistrationScope()
.Returns the scope of the failed registration attempt.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateRegistrationException
public DuplicateRegistrationException() -
DuplicateRegistrationException
-
DuplicateRegistrationException
-
DuplicateRegistrationException
-
-
Method Details
-
getRegistrationScope
Returns the scope of the failed registration attempt.- Returns:
- a
MOScope
instance, typically aMOContextScope
.
-
getRegisteredScope
Returns the scope that is already registered and overlaps with the scope returned bygetRegistrationScope()
.- Returns:
- a
MOScope
instance. - Since:
- 1.1
-