org.friendlysnmp.event
Interface FExceptionListener


public interface FExceptionListener

Objects implementing this interface should be registered with FriendlyAgent for receiving FException objects thrown while processing SNMP requests. This processing may happen in the FriendlySNMP library itself or in the outside code in listeners processing these requests. Most probably these types of exceptions are happening while development and they signal problems in a code.The bulk part of them belongs to two types:

  1. Values conversions Java-to-Variable and back. Usually this exception is a result of mismatch "syntax" stored in the SNMP managed object and a type of assigned value. The mismatch may be caused by wrong value restored from persistent storage or assigned in the code.
  2. Some generic Throwable is caught in the code.

Version:
$Revision: 1.8 $

Method Summary
 void exceptionThrown(java.lang.String msg, FException e)
          This method is called on registered object with an exception caught in the library.
 

Method Detail

exceptionThrown

void exceptionThrown(java.lang.String msg,
                     FException e)
This method is called on registered object with an exception caught in the library. See details in this class JavaDoc.

Parameters:
msg - message with some explanation about the exception, or null
e - exception