APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.net.http.websocket

pack-priv final Class FailWebSocketException

extends RuntimeException
Class Inheritance
Static Imports
jdk.internal.net.http.websocket.StatusCodes.PROTOCOL_ERROR

Field Summary

Modifier and TypeField and Description
private static final long
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
FailWebSocketException(String detail, int statusCode)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
public FailWebSocketException
initCause(Throwable cause)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this throwable to the specified value.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

statusCodeback to summary
private final int statusCode

Constructor Detail

FailWebSocketExceptionback to summary
pack-priv FailWebSocketException(String detail)
FailWebSocketExceptionback to summary
pack-priv FailWebSocketException(String detail, int statusCode)

Method Detail

getStatusCodeback to summary
pack-priv int getStatusCode()
initCauseback to summary
public FailWebSocketException initCause(Throwable cause)

Overrides java.lang.Throwable.initCause.

Doc from java.lang.Throwable.initCause.

Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.)

This method can be called at most once. It is generally called from within the constructor, or immediately after creating the throwable. If this throwable was created with Throwable(Throwable) or Throwable(String, Throwable), this method cannot be called even once.

An example of using this method on a legacy throwable type without other support for setting the cause is:

try {
    lowLevelOp();
} catch (LowLevelException le) {
    throw (HighLevelException)
          new HighLevelException().initCause(le); // Legacy constructor
}
Annotations
@Override