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

Part Number E27170-01

weblogic.websocket
Class WebSocketException

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

public class WebSocketException
extends RuntimeException

Defines a general exception the container can throw when it encounters difficulty.

See Also:
Serialized Form

Constructor Summary
WebSocketException(String message)
          Constructs a new WebSocket exception with the specified message.
WebSocketException(String message, Throwable cause)
          Constructs a new WebSocket exception when the container needs to throw an exception and include a message about the cause exception that interfered with its normal operation, including a description message.
WebSocketException(Throwable throwable)
          Constructs a new WebSocket exception when the container needs to throw an exception and include a message about the cause exception that interfered with its normal operation.
 
Method Summary
 
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
 

Constructor Detail

WebSocketException

public WebSocketException(String message)
Constructs a new WebSocket exception with the specified message.

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

WebSocketException

public WebSocketException(String message,
                          Throwable cause)
Constructs a new WebSocket exception when the container needs to throw an exception and include a message about the cause exception that interfered with its normal operation, including a description message.

Parameters:
message - a String containing the text of the exception message.
cause - the Throwable exception that interfered with the container's normal operation, making this WebSocket exception necessary.

WebSocketException

public WebSocketException(Throwable throwable)
Constructs a new WebSocket exception when the container needs to throw an exception and include a message about the cause exception that interfered with its normal operation. The exception's message is based on the localized message of the underlying exception.

Parameters:
throwable - the Throwable exception that interfered with the container's normal operation, making the WebSocket exception necessary.

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