The current exception implement requires the error message to be declared and referenced explicitly, especially when it's sent from server to the client. On client side, this error message cannot be accessed via a native API like exception::what() in C++.
On client side, it can only be accessed like this,
At the same time, if TException::message_ is initialized, exception::what() does work when the exception is caught locally.
It's a little confusing when to use the native method, and when to use Thrift exception message data member.
It'll be really nice if all exception messages can be accessed the same way thru the navtive language on client side.