rails/rails — pull request #10828 by southpolesteve (2013-06-03 21:30:58+00:00)
Title: Create DelegationError class

I found my self in a situation today where I wanted to rescue from a delegate exception where the object I was delegating to was nil. Right now this throws a standard `RuntimeError` with a detailed message, which is great, but in this case I didn't want to rescue from other exceptions. I think adding this simple `DelegationError` class would make working with these exceptions a bit cleaner.

I hope others find this valuable. Feedback welcome!