r1319@opsdev009 (orig r70531): cpiro | 2007-11-17 18:10:20 -0800
[thrift] gut Erlang exception handling
Summary: * move type field to tException from subclasses
* add backtrace to tException
* add oop:is_a
* on exit, wrap exceptions in {thrift_exception, E} ... otherwise can't distinguish e.g. exit:{{tBinProtException, {tException, ...}}, Stack} vs. exit:{tBinProtException, {tException, ...} -- I hate erlang
* all throws/exits to tException:throw which does the wrapping described above
Reviewed By: eletuchy
Test Plan: been using this code on my live server ^_^
Revert: OK
git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@678 41a61cd8-c433-0410-bb1c-e256eeef9e11
22 files changed: