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 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 isErrorFree()
          Returns true if both errorStatus and errorIndex is 0
 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

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


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.