From: "Iñaki Baz Castillo" Date: 2008-08-15T01:16:55+09:00 Subject: Re: How to pass an object as parameter from a "raise" to a "rescue"? 2008/8/14, Iñaki Baz Castillo : > Hi, is it possible to send an object when running "raise" so the > "rescue" gets it? I found a way since "raise" expects a Exception class or Exception instance, so I did: class Cancelled < GenericError attr_reader :cancel_request def initialize(cancel_request) @cancel_request = cancel_request super end end ... cancel_exception = Transaction::Cancelled.new(cancel_req) other_thread.raise cancel_exception ... rescue Transaction::Cancelled => e cancel_request = e.cancel_request :) -- Iñaki Baz Castillo