- 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
ADuplicateRegistrationException
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
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 MOScope
getRegisteredScope()
Returns the scope that is already registered and overlaps with the scope returned bygetRegistrationScope()
.MOScope
getRegistrationScope()
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
-
-
-
-
Method Detail
-
getRegistrationScope
public MOScope getRegistrationScope()
Returns the scope of the failed registration attempt.- Returns:
- a
MOScope
instance, typically aMOContextScope
.
-
getRegisteredScope
public MOScope getRegisteredScope()
Returns the scope that is already registered and overlaps with the scope returned bygetRegistrationScope()
.- Returns:
- a
MOScope
instance. - Since:
- 1.1
-
-