|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
weblogic.websocket.WebSocketException
weblogic.websocket.HandshakeException
public class HandshakeException
Defines an exception that occurred during the WebSocket handshake phase.
WebSocketException
,
Serialized FormField Summary | |
---|---|
static int |
PROTOCOL_ERROR
Error code indicating that the handshake request cannot meet the requirements specified in the WebSocket Protocol (RFC6455). |
static int |
UNSUPPORTED_VERSION
Error code indicating that the specified WebSocket Protocol version of the handshake request is not supported. |
Constructor Summary | |
---|---|
HandshakeException(int code,
String message)
Constructs a new handshake exception with the specified error code and message. |
|
HandshakeException(String message)
Constructs a new handshake exception with the specified message. |
Method Summary | |
---|---|
int |
getCode()
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 |
---|
public static final int PROTOCOL_ERROR
public static final int UNSUPPORTED_VERSION
Constructor Detail |
---|
public HandshakeException(String message)
message
- a String containing the text of the exception message.public HandshakeException(int code, String message)
code
- an integer value indicating the type of error.message
- a String containing the text of the exception message.Method Detail |
---|
public int getCode()
|
Copyright 1996, 2013, 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.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |