Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

EXCEPTION message type for Thrift envelopes #117

Open
abhinav opened this issue Mar 2, 2016 · 0 comments
Open

EXCEPTION message type for Thrift envelopes #117

abhinav opened this issue Mar 2, 2016 · 0 comments

Comments

@abhinav
Copy link
Contributor

abhinav commented Mar 2, 2016

In Apache Thrift, when the message type for the Thrift envelope is exception, the payload is a TApplicationException, which is defined as:

enum ExceptionType {
  UNKNOWN = 0
  UNKNOWN_METHOD = 1
  INVALID_MESSAGE_TYPE = 2
  WRONG_METHOD_NAME = 3
  BAD_SEQUENCE_ID = 4
  MISSING_RESULT = 5
  INTERNAL_ERROR = 6
  PROTOCOL_ERROR = 7
  INVALID_TRANSFORM = 8
  INVALID_PROTOCOL = 9
  UNSUPPORTED_CLIENT_TYPE = 10
}

struct TApplicationException {
  1: optional string message
  2: optional ExceptionType type
}

Depends on: #107
Related Python issue: thriftrw/thriftrw-python#104.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant