public class InvalidHandshakeException extends RuntimeException implements ICloseControllingException
ICloseControllingException.CloseType
Constructor and Description |
---|
InvalidHandshakeException()
Constructs a new exception without the detail message and with the default
closing type.
|
InvalidHandshakeException(String message)
Constructs a new exception with the specified detail message and with the
default closing type.
|
InvalidHandshakeException(String message,
Throwable cause)
Constructs a new exception with the specified detail message, cause and
with the default closing type.
|
InvalidHandshakeException(String message,
Throwable cause,
boolean gentleClose)
Constructs a new exception with the specified detail message, cause and
session closing type.
|
InvalidHandshakeException(Throwable cause)
Constructs a new exception with the specified cause and with the default
closing type.
|
InvalidHandshakeException(Throwable cause,
boolean gentleClose)
Constructs a new exception with the specified cause and session closing type.
|
Modifier and Type | Method and Description |
---|---|
ICloseControllingException.CloseType |
getCloseType()
Returns the way a session should be closed after throwing this exception
during processing of session's I/O operations.
|
Throwable |
getClosingCause()
Returns the cause that triggered the close operation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidHandshakeException(String message, Throwable cause, boolean gentleClose)
message
- the detail message.cause
- the causegentleClose
- the session closing type. If true
the affected
session will be gently closed, or otherwise the default
closing will be performedpublic InvalidHandshakeException(Throwable cause, boolean gentleClose)
cause
- the causegentleClose
- the session closing type. If true
the affected
session will be gently closed, or otherwise the default
closing will be performedpublic InvalidHandshakeException(String message, Throwable cause)
message
- the detail message.cause
- the causepublic InvalidHandshakeException(String message)
message
- the detail message.public InvalidHandshakeException()
public InvalidHandshakeException(Throwable cause)
cause
- the causepublic ICloseControllingException.CloseType getCloseType()
ICloseControllingException
getCloseType
in interface ICloseControllingException
public Throwable getClosingCause()
ICloseControllingException
IHandler.exception(java.lang.Throwable)
.getClosingCause
in interface ICloseControllingException
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.