com.sun.grizzly.filter
Class MessageParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.grizzly.filter.MessageParseException
All Implemented Interfaces:
Serializable

public class MessageParseException
extends Exception

If something went wrong during parsing like a Bad Magic or bad Message Format usually a <@link MessageParseException> is thrown.

Version:
1.0
Author:
John Vieten 01.07.2008
See Also:
Serialized Form

Constructor Summary
MessageParseException(String message, Message.ErrorCode errorCode)
           
 
Method Summary
 MessageBase convertToMessage()
           
 
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

MessageParseException

public MessageParseException(String message,
                             Message.ErrorCode errorCode)
Method Detail

convertToMessage

public MessageBase convertToMessage()
Returns:
MessageBase MessageError since CustomProtocolParser can not throw an Exception a MessageBase must be given to the next Filter


Copyright © 2012 Oracle Corporation. All Rights Reserved.