net.sf.snmpadaptor4j.api
Class SnmpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.snmpadaptor4j.api.SnmpException
All Implemented Interfaces:
Serializable

public final class SnmpException
extends RuntimeException

SNMP exception.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
SnmpException(int errorStatus)
          Constructor.
SnmpException(String message, int errorStatus)
          Constructor.
SnmpException(String message, int errorStatus, org.apache.log4j.Level loggerLevel)
          Constructor.
SnmpException(String message, int errorStatus, Throwable cause)
          Constructor.
 
Method Summary
 int getErrorStatus()
          Returns the error status.
 org.apache.log4j.Level getLoggerLevel()
          Returns the logger level.
 
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
 

Constructor Detail

SnmpException

public SnmpException(int errorStatus)
Constructor.

Parameters:
errorStatus - Error status.

SnmpException

public SnmpException(String message,
                     int errorStatus,
                     Throwable cause)
Constructor.

Parameters:
message - Detailed message on error.
errorStatus - Error status.
cause - Error cause.

SnmpException

public SnmpException(String message,
                     int errorStatus)
Constructor.

Parameters:
message - Detailed message on error.
errorStatus - Error status.

SnmpException

public SnmpException(String message,
                     int errorStatus,
                     org.apache.log4j.Level loggerLevel)
Constructor.

Parameters:
message - Detailed message on error.
errorStatus - Error status.
loggerLevel - Logger level.
Method Detail

getErrorStatus

public int getErrorStatus()
Returns the error status.

Returns:
Error status.

getLoggerLevel

public org.apache.log4j.Level getLoggerLevel()
Returns the logger level.

Returns:
Logger level.


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.