Class WsIOException

All Implemented Interfaces:
Serializable

public class WsIOException extends IOException
Allows the WebSocket implementation to throw an IOException that includes a CloseReason specific to the error that can be passed back to the client.
See Also:
  • Constructor Details

    • WsIOException

      public WsIOException(CloseReason closeReason)
      Creates a WebSocket I/O exception with the given close reason.
      Parameters:
      closeReason - the WebSocket close reason
  • Method Details

    • getCloseReason

      public CloseReason getCloseReason()
      Returns the WebSocket close reason for this exception.
      Returns:
      the close reason