/[Apache-SVN]
ViewVC logotype

Revision 665350


Jump to revision: Previous Next
Author: cpiro
Date: Sun Nov 18 02:10:20 2007 UTC (16 years, 11 months ago)
Changed paths: 22
Log Message:
[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


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_erl_generator.cc modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/oop.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/protocol/tProtocolException.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/tApplicationException.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/tException.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/thrift_constants.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/thrift_macros.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/include/transport/tTransportException.hrl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/oop.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/protocol/tBinaryProtocol.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/protocol/tProtocolException.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/server/tErlServer.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/tApplicationException.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/tErlProcessor.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/tException.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/thrift_logger.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/thrift_oop_server.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/thrift_sup.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/thrift_utils.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/transport/tErlAcceptor.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/transport/tSocket.erl modified , text changed
Directoryincubator/thrift/trunk/lib/erl/src/transport/tTransportException.erl modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26