Class WebSocketCloseException$

  • All Implemented Interfaces:
    java.io.Serializable

    public class WebSocketCloseException$
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static WebSocketCloseException$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WebSocketCloseException create​(int closeCode)
      Create an exception closing the WebSocket with the given close code and an empty reason.
      WebSocketCloseException create​(int closeCode, java.lang.String closeReason)
      Create an exception closing the WebSocket with the given close code and reason.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final WebSocketCloseException$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • WebSocketCloseException$

        public WebSocketCloseException$()
    • Method Detail

      • create

        public WebSocketCloseException create​(int closeCode,
                                              java.lang.String closeReason)
        Create an exception closing the WebSocket with the given close code and reason.

        Parameters:
        closeCode - an application specific close code in the range 3000-4999
        closeReason - a reason, at most 123 bytes when UTF-8 encoded
        Returns:
        (undocumented)
      • create

        public WebSocketCloseException create​(int closeCode)
        Create an exception closing the WebSocket with the given close code and an empty reason.

        Parameters:
        closeCode - an application specific close code in the range 3000-4999
        Returns:
        (undocumented)