com.twitter.finatra.thrift.exceptions
A generic com.twitter.finatra.thrift.exceptions.ExceptionMapper over the Exception exception type. This mapper attempts to translate other exceptions to known finatra-thrift exceptions.
We recommend for users to register this mapper in their scala Servers.
Note: this is only applicable in scala since it is using thriftscala exceptions
Handles an exception of type T and maps it to a new Future
- the Exception T to handle
a new Future mapped from the Throwable
A generic com.twitter.finatra.thrift.exceptions.ExceptionMapper over the Exception exception type. This mapper attempts to translate other exceptions to known finatra-thrift exceptions.
We recommend for users to register this mapper in their scala Servers.
Note: this is only applicable in scala since it is using thriftscala exceptions