Skip to content

Commit

Permalink
Made exceptions that inerit from Halcyon::Exceptions::Base not requir…
Browse files Browse the repository at this point in the history
…e the status code as the first parameter (and removes it completely, in fact). The only argument when raising these exceptions is the body text. [#49 state:resolved]
  • Loading branch information
mtodd committed Jun 17, 2008
1 parent 02213e5 commit 78a19ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/halcyon/exceptions.rb
Expand Up @@ -95,8 +95,8 @@ def initialize(status, body)
status, body = http_status
class_eval <<-"end;"
class #{body.gsub(/( |\-)/,'')} < Halcyon::Exceptions::Base
def initialize(s=#{status}, b='#{body}')
super
def initialize(body='#{body}')
super(#{status}, body)
end
end
end;
Expand Down

0 comments on commit 78a19ed

Please sign in to comment.