pub enum ApplicationErrorKind {
Unknown = 0,
UnknownMethod = 1,
InvalidMessageType = 2,
WrongMethodName = 3,
BadSequenceId = 4,
MissingResult = 5,
InternalError = 6,
ProtocolError = 7,
InvalidTransform = 8,
InvalidProtocol = 9,
UnsupportedClientType = 10,
}
Expand description
A list specifying general categories of application error.
This list may grow, and it is not recommended to match against it.
Variants§
Unknown = 0
Catch-all application error.
UnknownMethod = 1
Service call made to/for an unknown service method.
InvalidMessageType = 2
Received an unknown Thrift message type. That is, not one of the
variants specified in rift::protocol::TMessageType
.
WrongMethodName = 3
Incoming Thrift reply does not specify the correct method name for the service call it’s replying to.
BadSequenceId = 4
Auto-generated code received an out-of-order Thrift message.
MissingResult = 5
InternalError = 6
Auto-generated code failed unexpectedly.
ProtocolError = 7
Generic Thrift protocol error. When possible use ProtocolError
with
a specific ProtocolErrorKind
instead.
InvalidTransform = 8
Unknown. Only for compatibility with existing Thrift implementations.
InvalidProtocol = 9
Remote Thrift service endpoint requested, or is using, an unsupported wire encoding.
UnsupportedClientType = 10
Remote Thrift service endpoint requested, or is using, an unsupported auto-generated client type.
Trait Implementations§
Source§impl Clone for ApplicationErrorKind
impl Clone for ApplicationErrorKind
Source§fn clone(&self) -> ApplicationErrorKind
fn clone(&self) -> ApplicationErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more