On Sat, Sep 11, 2004 at 02:55:04AM +0900, gabriele renzi wrote:
> Test::Unit goes boom:
> 
> Loaded suite boom
> Started
> boom.rb:5:in `test_f': Exception (Exception)
> 	from rubydir/1.8/test/unit/testcase.rb:70:in `__send__'

And if you look at line 70 of that file and its vicinity, you'll see that
Test::Unit only catches
  AssertionFailedError
  StandardError
  ScriptError

However, normally you would never raise a raw Exception. From the
Programming Ruby book (tut_exceptions.html):

   When you need to raise an exception, you can use one of the built-in
   Exception classes, or you can create one of your own. If you create
   your own, you might want to make it a subclass of StandardError or one
   of its children. If you don't, your exception won't be caught by
   default.

So the solution is to make your custom exception a subclass of StandardError

Regards,

Brian.