Is there an agreed upon method for handling exceptions thrown by
something outside of Merb?  For example, DataMapper now throws a
DataMapper::ObjectNotFoundError when a record isn't found in the db.
I'd like to catch these exceptions and raise a C:E:NotFound exception
instead, but without having to wrap a lot of code in begin/rescue/end
blocks.

Thanks,

Mike Irwin
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to