By default the "source" of a com.twitter.inject.thrift.ThriftClientException will be the thrift client label set inside of the ThriftClientException.
By default the "source" of a com.twitter.inject.thrift.ThriftClientException will be the thrift client label set inside of the ThriftClientException. However, you can provide your own ThriftClientExceptionSource where you match the ThriftClientException to a logical name. You would then provide this ThriftClientExceptionSource in a module so that it is injectable to the com.twitter.finatra.thrift.ThriftClientExceptionMapper.
For example,
MyThriftClientExceptionSourceModule extends TwitterModule {
- the com.twitter.inject.thrift.ThriftClientException to match against for a source
a String that represents the logical name of the "source" of the Exception.
com.twitter.finatra.thrift.ThriftClientExceptionMapper
com.twitter.inject.thrift.internal.filters.ThriftClientExceptionFilter