- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.snmp4j.agent.MOException
-
- org.snmp4j.agent.DuplicateRegistrationException
-
- All Implemented Interfaces:
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(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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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
-
-