com.sun.grizzly.filter
Class MessageParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MessageParseException
public MessageParseException(String message,
Message.ErrorCode errorCode)
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.