Sha256: 1d68f6b9bc21687361501855028125b5a081bb9c72b136698a2240ddc75f5280

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

module Myfinance
  class Exception < StandardError
    attr_accessor :code, :body, :headers

    def initialize(args = {})
      super(args[:message])
      @code     = args[:code]
      @body     = args[:body]
      @headers  = args[:headers]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
myfinance-1.8.2 lib/myfinance/exception.rb
myfinance-1.8.1 lib/myfinance/exception.rb
myfinance-1.8.0 lib/myfinance/exception.rb
myfinance-1.7.0 lib/myfinance/exception.rb
myfinance-1.6.6 lib/myfinance/exception.rb
myfinance-1.6.5 lib/myfinance/exception.rb
myfinance-1.6.4 lib/myfinance/exception.rb