Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
* rescuing more exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed May 13, 2014
1 parent 1e71bc5 commit 682fff6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion active_domain/lib/active_domain/command_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def run_command(command)
RELOADER.execute_if_updated
processor, method = @@routes[command.class]
processor_instance(processor).method(method).call(command)
rescue Exception => e
rescue => e
LOGGER.error e.message
LOGGER.error e.backtrace.join("\n")
raise ActiveEvent::DomainExceptionCapture, ["#{e.class.name}: #{e.message}", e.backtrace].to_json, e.backtrace
Expand Down
2 changes: 1 addition & 1 deletion active_domain/lib/active_domain/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run
DRb.thread.join
rescue Interrupt
LOGGER.info 'Catching Interrupt'
rescue Exception => e
rescue => e
LOGGER.error e.message
LOGGER.error e.backtrace.join("\n")
raise e
Expand Down
2 changes: 1 addition & 1 deletion active_event/lib/active_event/event_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.start(options)
def start
event_connection.start
listen_for_resend_requests
rescue Exception => e
rescue => e
LOGGER.error e.message
LOGGER.error e.backtrace.join("\n")
raise e
Expand Down
2 changes: 1 addition & 1 deletion active_event/lib/active_event/replay_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def start(id)
@last_id = id
start_republishing
send_done_message
rescue Exception => e
rescue => e
LOGGER.error e.message
LOGGER.error e.backtrace.join("\n")
raise e
Expand Down
4 changes: 2 additions & 2 deletions active_projection/lib/active_projection/event_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def start
end
rescue Interrupt
LOGGER.info 'Catching Interrupt'
rescue Exception => e
rescue => e
LOGGER.error e.message
LOGGER.error e.backtrace.join("\n")
raise
Expand Down Expand Up @@ -130,7 +130,7 @@ def process_event(headers, event)
projection.invoke event, headers
end
send_projection_notification headers[:id], projection
rescue Exception => e
rescue => e
send_projection_notification headers[:id], projection, e
end
end
Expand Down
2 changes: 1 addition & 1 deletion active_projection/lib/active_projection/projection_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def invoke(event, headers)
else
send method, event, headers
end
rescue Exception => e
rescue => e
LOGGER.error "[#{self.class.name}]: error processing #{event_type}[#{event_id}]\n#{e.message}\n#{e.backtrace}"
mark_broken
raise
Expand Down
4 changes: 2 additions & 2 deletions disco-railties/lib/generators/disco/app/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def enable_rake_tasks
content = "
require 'rails-disco/tasks'"
inject_into_file File.join('config/application.rb'), content, after: /require 'rails\/all'/
rescue Exception
rescue
puts "Seems like you invoked it from an engine, so put\n
require 'rails-disco/tasks'\n
in your application.rb from the main application to have the rails disco rake tasks available"
Expand All @@ -92,7 +92,7 @@ def enable_concurrency
return if behavior == :revoke
application 'config.preload_frameworks = true'
application 'config.allow_concurrency = true'
rescue Exception
rescue
puts "Seems like you invoked it from an engine, so remember to put\n
config.preload_frameworks = true
config.allow_concurrency = true\n
Expand Down

0 comments on commit 682fff6

Please sign in to comment.