Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.websocket
Class HandshakeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by weblogic.websocket.WebSocketException
                  extended by weblogic.websocket.HandshakeException
All Implemented Interfaces:
Serializable

Deprecated. As of release 12.1.3, replaced by JSR356: Java API for WebSocket

@Deprecated
public class HandshakeException
extends WebSocketException

Defines an exception that occurred during the WebSocket handshake phase.

See Also:
WebSocketException, Serialized Form

Field Summary
static int PROTOCOL_ERROR
          Deprecated. Error code indicating that the handshake request cannot meet the requirements specified in the WebSocket Protocol (RFC6455).
static int UNSUPPORTED_VERSION
          Deprecated. Error code indicating that the specified WebSocket Protocol version of the handshake request is not supported.
 
Constructor Summary
HandshakeException(int code, String message)
          Deprecated. Constructs a new handshake exception with the specified error code and message.
HandshakeException(String message)
          Deprecated. Constructs a new handshake exception with the specified message.
 
Method Summary
 int getCode()
          Deprecated. Get the error code of the exception.
 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOCOL_ERROR

public static final int PROTOCOL_ERROR
Deprecated. 
Error code indicating that the handshake request cannot meet the requirements specified in the WebSocket Protocol (RFC6455).

See Also:
Constant Field Values

UNSUPPORTED_VERSION

public static final int UNSUPPORTED_VERSION
Deprecated. 
Error code indicating that the specified WebSocket Protocol version of the handshake request is not supported.

See Also:
Constant Field Values
Constructor Detail

HandshakeException

public HandshakeException(String message)
Deprecated. 
Constructs a new handshake exception with the specified message. The error code is specified to be PROTOCOL_ERROR.

Parameters:
message - a String containing the text of the exception message.

HandshakeException

public HandshakeException(int code,
                          String message)
Deprecated. 
Constructs a new handshake exception with the specified error code and message.

Parameters:
code - an integer value indicating the type of error.
message - a String containing the text of the exception message.
Method Detail

getCode

public int getCode()
Deprecated. 
Get the error code of the exception.

Returns:
the error code.

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02