public class StompSubProtocolErrorHandler extends Object implements SubProtocolErrorHandler<byte[]>
SubProtocolErrorHandler for use with STOMP.| Constructor and Description | 
|---|
| StompSubProtocolErrorHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| Message<byte[]> | handleClientMessageProcessingError(Message<byte[]> clientMessage,
                                  Throwable ex)Handle errors thrown while processing client messages providing an
 opportunity to prepare the error message or to prevent one from being sent. | 
| Message<byte[]> | handleErrorMessageToClient(Message<byte[]> errorMessage)Handle errors sent from the server side to clients, e.g. | 
| protected Message<byte[]> | handleInternal(StompHeaderAccessor errorHeaderAccessor,
              byte[] errorPayload,
              Throwable cause,
              StompHeaderAccessor clientHeaderAccessor) | 
public Message<byte[]> handleClientMessageProcessingError(Message<byte[]> clientMessage, Throwable ex)
SubProtocolErrorHandlerNote that the STOMP protocol requires a server to close the connection
 after sending an ERROR frame. To prevent an ERROR frame from being sent,
 a handler could return null and send a notification message
 through the broker instead, e.g. via a user destination.
handleClientMessageProcessingError in interface SubProtocolErrorHandler<byte[]>clientMessage - the client message related to the error, possibly
 null if error occurred while parsing a WebSocket messageex - the cause for the error, never nullnull in which
 case no message will be sent.public Message<byte[]> handleErrorMessageToClient(Message<byte[]> errorMessage)
SubProtocolErrorHandler"broke relay" because connectivity failed or the external broker sent an
 error message, etc.handleErrorMessageToClient in interface SubProtocolErrorHandler<byte[]>errorMessage - the error message, never nullnull in which
 case no message will be sent.protected Message<byte[]> handleInternal(StompHeaderAccessor errorHeaderAccessor, byte[] errorPayload, Throwable cause, StompHeaderAccessor clientHeaderAccessor)