# Where do custom exceptions belong?

**URL:** <https://www.ruby-forum.com/t/where-do-custom-exceptions-belong/89049>\
**Category:** Rails\
**Created:** [March 16, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/where-do-custom-exceptions-belong/89049 "2007-03-16T19:19:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nielsene](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/bc79bd/32.png) [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Post date:** [March 16, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/where-do-custom-exceptions-belong/89049/1 "2007-03-16T19:19:08Z")

</div>

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.

Thanks,

Eric
