Package org.apache.cassandra.transport
Class ProtocolException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.cassandra.transport.ProtocolException
-
- All Implemented Interfaces:
java.io.Serializable,TransportException
public class ProtocolException extends java.lang.RuntimeException implements TransportException
Exceptions thrown when a client didn't respect the protocol.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProtocolException(java.lang.String msg)ProtocolException(java.lang.String msg, ProtocolVersion forcedProtocolVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionCodecode()The exception code.ProtocolVersiongetForcedProtocolVersion()booleanisFatal()booleanisSilent()static ProtocolExceptiontoFatalException(ProtocolException e)static ProtocolExceptiontoSilentException(ProtocolException e)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.exceptions.TransportException
getMessage
-
-
-
-
Constructor Detail
-
ProtocolException
public ProtocolException(java.lang.String msg)
-
ProtocolException
public ProtocolException(java.lang.String msg, ProtocolVersion forcedProtocolVersion)
-
-
Method Detail
-
code
public ExceptionCode code()
Description copied from interface:TransportExceptionThe exception code.- Specified by:
codein interfaceTransportException
-
getForcedProtocolVersion
public ProtocolVersion getForcedProtocolVersion()
-
isFatal
public boolean isFatal()
-
isSilent
public boolean isSilent()
-
toFatalException
public static ProtocolException toFatalException(ProtocolException e)
-
toSilentException
public static ProtocolException toSilentException(ProtocolException e)
-
-