HOME

com.ireasoning.protocol.snmp
Class SnmpError

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.SnmpError
All Implemented Interfaces:
Serializable

public class SnmpError
extends Object
implements Serializable

This class contains SNMP error information: errorIndex and errorStatus

See Also:
Serialized Form

Field Summary
static int AUTH_FAILED
           
static SnmpError NO_ERROR
          No error
static SnmpError REJECT_PACKET
          Reject packet
 
Constructor Summary
SnmpError()
          Default constructor
SnmpError(int status, int index)
          Constructor
 
Method Summary
 int getErrorIndex()
           
 int getErrorStatus()
           
 boolean isAuthFailed()
           
 boolean isErrorFree()
          Returns true if both errorStatus and errorIndex is 0
 void setAuthFailed()
          To indiate authentication failure error
 void setErrorIndex(int i)
           
 void setErrorStatus(int status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_ERROR

public static final SnmpError NO_ERROR
No error


REJECT_PACKET

public static final SnmpError REJECT_PACKET
Reject packet


AUTH_FAILED

public static final int AUTH_FAILED
See Also:
Constant Field Values
Constructor Detail

SnmpError

public SnmpError()
Default constructor


SnmpError

public SnmpError(int status,
                 int index)
Constructor

Parameters:
status - error status
index - error index
Method Detail

isErrorFree

public boolean isErrorFree()
Returns true if both errorStatus and errorIndex is 0


isAuthFailed

public boolean isAuthFailed()
Returns:
true indicates SNMPv3 authentication failure

setAuthFailed

public void setAuthFailed()
To indiate authentication failure error


setErrorStatus

public void setErrorStatus(int status)

getErrorStatus

public int getErrorStatus()

setErrorIndex

public void setErrorIndex(int i)

getErrorIndex

public int getErrorIndex()

toString

public String toString()

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.