Tighten integration with Ruby exceptions by tying in Exception#message
authorDavid Reiss <dreiss@apache.org>
Tue, 26 Feb 2008 06:40:25 +0000 (06:40 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 26 Feb 2008 06:40:25 +0000 (06:40 +0000)
commit0e18224473b8bad918e060900663a9d0058d7196
treec236a35c417419cf2feb1474650ad4f8a8b5b225
parent68ccc699a398ed47cde0ad1d405f94241fed6068
Tighten integration with Ruby exceptions by tying in Exception#message

For Thrift exceptions that contain only a single string field, integrate
these even more tightly with Ruby exceptions by aliasing Ruby's
Exception#message field with the Thrift field.

Ruby exception objects created by Thrift will now display properly in
Ruby backtraces, etc. without any special handling by client code.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665503 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_rb_generator.cc