search for: rescue_except

Displaying 1 result from an estimated 1 matches for "rescue_except".

2011 May 05
1
How to placing common exceptions for all models in single method?
Hi guys, In my models i am using common exception in every methods. So Instead of writing same exception code on each method of model is there a best way to separate exception code into seperate method. when we need it simple we need to invoke that method. for example like this def rescue_excetpion begin rescue => e raise "Error message is #{e}" end end so when i