Dependency upon raised error/exception messages.

Hey everyone,
first of all, thank you for the tremendous work and effort on making Rails more awesome every day.

I’ve brought up this “issue” on Github last Friday. [1] Steve Klabnik told me to bring the discussion here, as it’s more appropriate.

The thing is, there is some amount of logic scattered around Rails (and its tests) that depends upon error/exception messages, instead of some attributes on the errors/exceptions themselves.
As Brian Shirai pointed out [2] error/exception messages are for human consumption.
This is a problem for other Ruby implementations such as JRuby and Rubinius, which implement error messages with different wording.
If needed, I’m available to work on this with coaching/mentoring from someone interested on the core team.

Thanks,
Federico

[1] https://github.com/rails/rails/pull/11494
[2] https://github.com/rubinius/rubinius/issues/2404#issuecomment-21256447

I don’t see any problem on stop to depending on the messages if we can. But I’m sure in some case we can’t.