com.adventnet.snmp.snmp2.agent
Class RegistrationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.adventnet.snmp.snmp2.agent.RegistrationException
All Implemented Interfaces:
java.io.Serializable

public class RegistrationException
extends java.lang.Exception

RegistrationException is thrown by the PduRequestHandler. in case of failure in registration of a VarBindRequestListener.

See Also:
PduRequestHandler, Serialized Form

Field Summary
(package private)  java.lang.String key
           
 
Constructor Summary
RegistrationException(java.lang.String msg)
          Constructor for RegistrationException with detailed message.
RegistrationException(java.lang.String msg, java.lang.String key)
          Constructor for RegistrationException with detailed message and key value.
 
Method Summary
 java.lang.String getKey()
          Returns the key which has a duplicate or invalid registration oid parameter.
 
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
 

Field Detail

key

java.lang.String key
Constructor Detail

RegistrationException

public RegistrationException(java.lang.String msg)
Constructor for RegistrationException with detailed message.

Parameters:
msg - the exception messge.

RegistrationException

public RegistrationException(java.lang.String msg,
                             java.lang.String key)
Constructor for RegistrationException with detailed message and key value.

Parameters:
msg - the exception messge.
key - the value of key.
Method Detail

getKey

public java.lang.String getKey()
Returns the key which has a duplicate or invalid registration oid parameter.

Returns:
the key value.