Skip to content

Commit

Permalink
use Class.new to create error classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Jan 27, 2013
1 parent eda3fd6 commit 6de06ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/savon.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module Savon

class Error < RuntimeError; end
class InitializationError < Error; end
class InvalidResponseError < Error; end
Error = Class.new(RuntimeError)
InitializationError = Class.new(Error)
InvalidResponseError = Class.new(Error)

def self.client(globals = {}, &block)
Client.new(globals, &block)
Expand Down

0 comments on commit 6de06ca

Please sign in to comment.