Skip to content

Commit

Permalink
UndefinedDecisionError is a StandardError
Browse files Browse the repository at this point in the history
To raise as a exception, the class requires to be a Exception.
Usual Exception should be a StandardError, which is captured by
rescue-clause by default.
  • Loading branch information
nurse committed Nov 19, 2015
1 parent 47ff89e commit 8eca4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/perfectqueue/application/decider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
module PerfectQueue
module Application

class UndefinedDecisionError
class UndefinedDecisionError < StandardError
end

class Decider
Expand Down

0 comments on commit 8eca4c1

Please sign in to comment.