# File lib/rake/application.rb, line 158
158:     def standard_exception_handling
159:       begin
160:         yield
161:       rescue SystemExit => ex
162:         # Exit silently with current status
163:         raise
164:       rescue OptionParser::InvalidOption => ex
165:         $stderr.puts ex.message
166:         exit(false)
167:       rescue Exception => ex
168:         # Exit with error message
169:         display_error_message(ex)
170:         exit(false)
171:       end
172:     end