# How do I find out what Exceptions a class may raise

**URL:** <https://www.ruby-forum.com/t/how-do-i-find-out-what-exceptions-a-class-may-raise/107531>\
**Category:** Ruby\
**Created:** [June 22, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/how-do-i-find-out-what-exceptions-a-class-may-raise/107531 "2007-06-22T17:58:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benemson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a8b319/32.png) [@benemson](https://www.ruby-forum.com/u/benemson)\
**Post date:** [June 22, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/how-do-i-find-out-what-exceptions-a-class-may-raise/107531/1 "2007-06-22T17:58:54Z")

</div>

at Been using the ActionMailer class, i.e.

class SimpleMailer \< ActionMailer::Base  
def simple\_message(to,sender,subject\_line,message)  
from sender  
recipients to  
subject subject\_line  
body message  
end  
end

But what I cant work out is what exceptions it can raise. Had a look  
at its documentation at  
[ActionMailer::Base](http://api.rubyonrails.org/classes/ActionMailer/Base.html) but it does  
not mention exceptions.

Ime fairly new to this and I guess my question is a general one on how  
do you find out the exceptions a class can raise?

Regards,  
Ben
