lib/if/ApplicationException.thrift (21 lines of code) (raw):
// Copyright (c) Facebook, Inc. and its affiliates.
namespace hs "Thrift.Protocol"
enum ApplicationExceptionType {
Unknown = 0,
UnknownMethod = 1,
InvalidMessageType = 2,
WrongMethodType = 3,
BadSequenceId = 4,
MissingResult = 5,
InternalError = 6,
ProtocolError = 7,
InvalidTransform = 8,
InvalidProtocol = 9,
UnsupportedClientType = 10,
Loadshedding = 11,
Timeout = 12,
InjectedFailure = 13,
}
exception ApplicationException {
1: string message;
2: ApplicationExceptionType type;
}