public class InvalidFrameException extends RuntimeException implements ICloseControllingException
ICloseControllingException.CloseType| Constructor and Description |
|---|
InvalidFrameException()
Constructs a new exception without the detail message and with the gentle
closing type.
|
InvalidFrameException(String message)
Constructs a new exception with the specified detail message and with the
gentle closing type.
|
InvalidFrameException(String message,
Throwable cause)
Constructs a new exception with the specified detail message, cause and
with the gentle closing type.
|
InvalidFrameException(String message,
Throwable cause,
boolean gentleClose)
Constructs a new exception with the specified detail message, cause and
session closing type.
|
InvalidFrameException(Throwable cause)
Constructs a new exception with the specified cause and with the gentle
closing type.
|
InvalidFrameException(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, toStringpublic InvalidFrameException(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 InvalidFrameException(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 InvalidFrameException(String message, Throwable cause)
message - the detail message.cause - the causepublic InvalidFrameException(String message)
message - the detail message.public InvalidFrameException(Throwable cause)
cause - the causepublic InvalidFrameException()
public ICloseControllingException.CloseType getCloseType()
ICloseControllingExceptiongetCloseType in interface ICloseControllingExceptionpublic Throwable getClosingCause()
ICloseControllingExceptionIHandler.exception(java.lang.Throwable).getClosingCause in interface ICloseControllingExceptionCopyright © 2017–2022 SNF4J.ORG. All rights reserved.