Class InvalidDataException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.java_websocket.exceptions.InvalidDataException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidFrameException, InvalidHandshakeException, LimitExceededException

public class InvalidDataException extends Exception
exception which indicates that a invalid data was received
See Also:
  • Constructor Details

    • InvalidDataException

      public InvalidDataException(int closecode)
      constructor for a InvalidDataException
      Parameters:
      closecode - the closecode which will be returned
    • InvalidDataException

      public InvalidDataException(int closecode, String s)
      constructor for a InvalidDataException.
      Parameters:
      closecode - the closecode which will be returned.
      s - the detail message.
    • InvalidDataException

      public InvalidDataException(int closecode, Throwable t)
      constructor for a InvalidDataException.
      Parameters:
      closecode - the closecode which will be returned.
      t - the throwable causing this exception.
    • InvalidDataException

      public InvalidDataException(int closecode, String s, Throwable t)
      constructor for a InvalidDataException.
      Parameters:
      closecode - the closecode which will be returned.
      s - the detail message.
      t - the throwable causing this exception.
  • Method Details

    • getCloseCode

      public int getCloseCode()
      Getter closecode
      Returns:
      the closecode