public class ProtocolException extends java.lang.RuntimeException implements TransportException
| Constructor and Description |
|---|
ProtocolException(java.lang.String msg) |
ProtocolException(java.lang.String msg,
ProtocolVersion forcedProtocolVersion) |
| Modifier and Type | Method and Description |
|---|---|
ExceptionCode |
code()
The exception code.
|
ProtocolVersion |
getForcedProtocolVersion() |
boolean |
isFatal() |
boolean |
isSilent() |
static ProtocolException |
toFatalException(ProtocolException e) |
static ProtocolException |
toSilentException(ProtocolException e) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic ProtocolException(java.lang.String msg)
public ProtocolException(java.lang.String msg,
ProtocolVersion forcedProtocolVersion)
public ExceptionCode code()
TransportExceptioncode in interface TransportExceptionpublic ProtocolVersion getForcedProtocolVersion()
public boolean isFatal()
public boolean isSilent()
public static ProtocolException toFatalException(ProtocolException e)
public static ProtocolException toSilentException(ProtocolException e)
Copyright © 2009-2022 The Apache Software Foundation