Sha256: 7d0ba809258237307404fb9c8feb6c91a22e44ebd16cf3f2ed126c23d615eb8c

Contents?: true

Size: 216 Bytes

Versions: 66

Compression:

Stored size: 216 Bytes

Contents

module Cobrato
  class Exception < StandardError
    attr_accessor :code, :body

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

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
cobrato-client-1.1.7 lib/cobrato/exception.rb
cobrato-client-1.1.6 lib/cobrato/exception.rb
cobrato-client-1.1.5 lib/cobrato/exception.rb
cobrato-client-1.1.4 lib/cobrato/exception.rb
cobrato-client-1.1.3 lib/cobrato/exception.rb
cobrato-client-1.1.2 lib/cobrato/exception.rb
cobrato-client-1.1.1 lib/cobrato/exception.rb
cobrato-client-1.1.0 lib/cobrato/exception.rb
cobrato-client-1.0.1 lib/cobrato/exception.rb
cobrato-client-1.0.0 lib/cobrato/exception.rb
cobrato-client-0.27.0 lib/cobrato/exception.rb
cobrato-client-0.26.0 lib/cobrato/exception.rb
cobrato-client-0.25.0 lib/cobrato/exception.rb
cobrato-client-0.24.1 lib/cobrato/exception.rb
cobrato-client-0.24.0 lib/cobrato/exception.rb
cobrato-client-0.23.0 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta12 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta11 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta10 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta9 lib/cobrato/exception.rb