开发者

How to catch a failsafe exception in rails 2.3.8

开发者 https://www.devze.com 2023-02-01 04:46 出处:网络
In my rails app, when ever the mysql service is stopped. I see a /!\\ FAILSAFE /!\\Tue Dec 28 14:37:59

In my rails app, when ever the mysql service is stopped. I see a

/!\ FAILSAFE /!\ Tue Dec 28 14:37:59 开发者_C百科 +0530 2010 Status: 500 Internal Server Error Mysql::Error

I could not catch this exception in my rescue_action_in_public exception handler to give a custom error msg. Is there anyway to catch this exception?


This link appears to explain what you ask. I can't speak to it's applicability in your particular situation, however.

http://www.simonecarletti.com/blog/2009/11/re-raise-a-ruby-exception-in-a-rails-rescue_from-statement/

0

精彩评论

暂无评论...
验证码 换一张
取 消