Skip to content

Commit 01b2ca1

Browse files
Emanuele Altierifacebook-github-bot
authored andcommitted
Annotate exception message
Summary: See https://www.internalfb.com/intern/staticdocs/thrift/docs/features/exception/#exception-message A custom (human-readable) exception message may be specified in a field, by annotating it with `thrift.ExceptionMessage`. This should allow the message to appear both in SR Scuba (under "Error Reason What") and McRouter Scuba. Reviewed By: disylh Differential Revision: D75648540 fbshipit-source-id: 4166bbdb139dc8819213af4ba9f1a0244ef61153
1 parent 979c477 commit 01b2ca1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

third-party/mcrouter/src/mcrouter/lib/network/gen/Common.thrift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,32 @@ namespace cpp2 facebook.memcache.thrift
2323
namespace py3 facebook.memcache.thrift
2424

2525
exception CarbonResultBusy {
26+
@thrift.ExceptionMessage
2627
1: string message
2728
}
2829

2930
exception CarbonResultRemoteError {
31+
@thrift.ExceptionMessage
3032
1: string message
3133
}
3234

3335
exception CarbonResultDeadlineExceeded {
36+
@thrift.ExceptionMessage
3437
1: string message
3538
}
3639

3740
exception CarbonResultShutdown {
41+
@thrift.ExceptionMessage
3842
1: string message
3943
}
4044

4145
exception CarbonResultTryAgain {
46+
@thrift.ExceptionMessage
4247
1: string message
4348
}
4449

4550
exception CarbonResultInvalidRequest {
51+
@thrift.ExceptionMessage
4652
1: string message
4753
}
4854

0 commit comments

Comments
 (0)