Forum: Ruby on Rails Where do custom exceptions belong?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ddf9c98db9ac40c6875fd2a5b2d4fa72?d=identicon&s=25 Eric Northam (Guest)
on 2007-03-16 19:19
(Received via mailing list)
I'm curious where custom exceptions are usually stored in a rails app.
I want to create a UserException that I intend to throw if the user
tries to do something that causes an error such as trying to delete
something twice or access a page that they don't have permission to
view. I'll probably eventually end up with several sub classes of
UserException. Let me know if you have any recommendations on where to
store them.


This topic is locked and can not be replied to.