From: ts Date: 2001-10-23T20:38:29+09:00 Subject: [ruby-talk:23039] Re: Error in Programming Ruby and patch suggestion for ruby >>>>> "N" == Niklas Frykholm writes: N> It seems to me that the semantics for raise should be that it should N> take an exception object and a message. Not an exception and arguments N> to its initializer... because that will only allow exceptions with N> single argument initializers. pigeon% cat b.rb #!/usr/bin/ruby class RetryError < RuntimeError def initialize(args) @ok = args[0] super(args[1]) end end raise RetryError, [true, "an Array is a single argument :-)"] pigeon% pigeon% b.rb ./b.rb:9: an Array is a single argument :-) (RetryError) pigeon% Guy Decoux