Ruby exception constructor bugfix
authorDavid Reiss <dreiss@apache.org>
Tue, 26 Feb 2008 06:40:16 +0000 (06:40 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 26 Feb 2008 06:40:16 +0000 (06:40 +0000)
commitebbfbd83956e3e85c9be7b419b0f4d2748f866e7
treef460e3687af91cebff22586d4901ff66aec8aaf4
parent01d187cb801a3c0462af337a8f0b6f0e2b1f2ec3
Ruby exception constructor bugfix

The Ruby exception constructor is modified to accept 0 arguments, which is
how Thrift library code creates exception objects. Without this fix, Thrift
Ruby clients that receive exception objects crash.

The call to super (resolving to ThriftStruct#initialize) is retained, but
is called with the default value (an empty hash) instead of passing the
message along.

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