org.snmp4j
Class MessageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.snmp4j.MessageException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnsupportedAddressClassException

public class MessageException
extends java.io.IOException

The MessageException represents information about an exception occured during message processing. The associated StatusInformation object provides (if present) detailed information about the error that occured and the status of the processed message.

Version:
1.0.1
Author:
Frank Fock
See Also:
Serialized Form

Constructor Summary
MessageException()
           
MessageException(StatusInformation status)
          Creates a MessageException from a StatusInformation object.
MessageException(java.lang.String message)
           
 
Method Summary
 StatusInformation getStatusInformation()
           
 void setStatusInformation(StatusInformation statusInformation)
           
 
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

MessageException

public MessageException()

MessageException

public MessageException(StatusInformation status)
Creates a MessageException from a StatusInformation object.

Parameters:
status - a StatusInformation instance.

MessageException

public MessageException(java.lang.String message)
Method Detail

getStatusInformation

public StatusInformation getStatusInformation()

setStatusInformation

public void setStatusInformation(StatusInformation statusInformation)

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.