# Catch all errors in script/runner?

**URL:** <https://www.ruby-forum.com/t/catch-all-errors-in-script-runner/142835>\
**Category:** Rails\
**Created:** [July 11, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/catch-all-errors-in-script-runner/142835 "2008-07-11T22:44:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reid\_Lynch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac8455/32.png) [@Reid\_Lynch](https://www.ruby-forum.com/u/Reid_Lynch)\
**Post date:** [July 11, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/catch-all-errors-in-script-runner/142835/1 "2008-07-11T22:44:42Z")

</div>

I have a rails app that is run exclusively as a script/runner process,  
and I’d like to be able to catch all errors that occur in these  
processes in a standardized way.

With a normal rails app, one can override rescue\_action\_in\_public in  
ApplicationController, but I’m only using models. Is there something  
similar I can do? Any help is much appreciated.
