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:
Serializable,TransportException
Exceptions thrown when a client didn't respect the protocol.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolException(String msg) ProtocolException(String msg, ProtocolVersion forcedProtocolVersion) -
Method Summary
Modifier and TypeMethodDescriptioncode()The exception code.booleanisFatal()booleanisSilent()static ProtocolExceptionstatic ProtocolExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.exceptions.TransportException
getMessage
-
Constructor Details
-
ProtocolException
-
ProtocolException
-
-
Method Details
-
code
Description copied from interface:TransportExceptionThe exception code.- Specified by:
codein interfaceTransportException
-
getForcedProtocolVersion
-
isFatal
public boolean isFatal() -
isSilent
public boolean isSilent() -
toFatalException
-
toSilentException
-