net.gleamynode.netty2
Class MessageParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.gleamynode.netty2.MessageParseException
All Implemented Interfaces:
Serializable

public class MessageParseException
extends IOException

An exception that is thrown when MessageRecognizeror Message cannot understand or validate incoming data.

Version:
$Rev: 4 $, $Date: 2005-04-18 12:04:09 +0900 $
Author:
Trustin Lee (http://gleamynode.net/dev/)
See Also:
Serialized Form

Constructor Summary
MessageParseException()
          Constructs a new instance.
MessageParseException(String message)
          Constructs a new instance with the specified message.
MessageParseException(String message, Throwable cause)
          Constructs a new instance with the specified message and the specified cause.
MessageParseException(Throwable cause)
          Constructs a new instance with the specified cause.
 
Method Summary
 ByteBuffer getBuffer()
          Returns unknown message part.
 String getMessage()
          Returns the message and the hexdump of the unknown part.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

MessageParseException

public MessageParseException()
Constructs a new instance.


MessageParseException

public MessageParseException(String message)
Constructs a new instance with the specified message.


MessageParseException

public MessageParseException(Throwable cause)
Constructs a new instance with the specified cause.


MessageParseException

public MessageParseException(String message,
                             Throwable cause)
Constructs a new instance with the specified message and the specified cause.

Method Detail

getMessage

public String getMessage()
Returns the message and the hexdump of the unknown part.

Overrides:
getMessage in class Throwable

getBuffer

public ByteBuffer getBuffer()
Returns unknown message part.



Copyright © 2004-2010 Trustin Lee. All Rights Reserved.