<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eXpand yOur cReativity &#187; exception</title>
	<atom:link href="http://blog.bhushangahire.net/tag/exception/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bhushangahire.net</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 07:17:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to raise and rescue Exceptions in Ruby on Rails</title>
		<link>http://blog.bhushangahire.net/2008/05/09/how-to-raise-and-rescue-exceptions-in-ruby-on-rails/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-raise-and-rescue-exceptions-in-ruby-on-rails</link>
		<comments>http://blog.bhushangahire.net/2008/05/09/how-to-raise-and-rescue-exceptions-in-ruby-on-rails/#comments</comments>
		<pubDate>Fri, 09 May 2008 13:55:34 +0000</pubDate>
		<dc:creator>Bhushan Ahire</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[exception]]></category>

		<guid isPermaLink="false">http://blog.bhushangahire.net/?p=41</guid>
		<description><![CDATA[Creating the Exception class To create our “PersonalException” we just need to extend “Exception” class. class PersonalException &#60; Exception end Raise our Exception raise PersonalException.new, "message" Rescue our exception We can do this by overwriting rescue_action_in_public and local_request? functions to our application.rb file:]]></description>
			<content:encoded><![CDATA[<div>
<h4>Creating the Exception class</h4>
<p>To create our “PersonalException” we just need to extend “Exception” class.</p>
<pre><code>
class PersonalException &lt; Exception
end
</code>
</pre>
<h4>Raise our Exception</h4>
<pre><code>
raise PersonalException.new, "message"
</code>
</pre>
<h4>Rescue our exception</h4>
<p>We can do this by overwriting  rescue_action_in_public and local_request? functions to our application.rb file:</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bhushangahire.net/2008/05/09/how-to-raise-and-rescue-exceptions-in-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

