Top Description Fields Constructors Methods
org.glassfish.grizzly.http2

public final Class Http2SessionException

extends IOException
Class Inheritance
Imports
java.io.IOException, org.glassfish.grizzly.http2.frames.ErrorCode

HTTP/2 session exception. Unlike Http2StreamException, this exception means severe problem related to the entire HTTP2 session.
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
private final ErrorCode

Constructor Summary

AccessConstructor and Description
public
Http2SessionException(final ErrorCode errorCode)

Construct Http2SessionException.

public
Http2SessionException(final ErrorCode errorCode, final String
the detail message for this Http2SessionException
message
)

Construct Http2SessionException.

Method Summary

Modifier and TypeMethod and Description
public ErrorCode
getErrorCode()

Returns: the ErrorCode reason to be sent with a GoAway.

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

errorCodeback to summary
private final ErrorCode errorCode

Constructor Detail

Http2SessionExceptionback to summary
public Http2SessionException(final ErrorCode errorCode)

Construct Http2SessionException.

Parameters
errorCode:ErrorCode

the ErrorCode for this Http2SessionException

Http2SessionExceptionback to summary
public Http2SessionException(final ErrorCode errorCode, final String message)

Construct Http2SessionException.

Parameters
errorCode:ErrorCode

the ErrorCode for this Http2SessionException

message:String

the detail message for this Http2SessionException

Method Detail

getErrorCodeback to summary
public ErrorCode getErrorCode()
Returns:ErrorCode

the ErrorCode reason to be sent with a GoAway.

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Annotations
@Override