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-0.23.0.beta8 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta7 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta6 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta5 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta4 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta3 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta2 lib/cobrato/exception.rb
cobrato-client-0.23.0.beta1 lib/cobrato/exception.rb
cobrato-client-0.22.0 lib/cobrato/exception.rb
cobrato-client-0.21.0 lib/cobrato/exception.rb
cobrato-client-0.20.0 lib/cobrato/exception.rb
cobrato-client-0.19.0 lib/cobrato/exception.rb
cobrato-client-0.18.0 lib/cobrato/exception.rb
cobrato-client-0.17.0 lib/cobrato/exception.rb
cobrato-client-0.16.0 lib/cobrato/exception.rb
cobrato-client-0.15.0 lib/cobrato/exception.rb
cobrato-client-0.14.0 lib/cobrato/exception.rb
cobrato-client-0.13.0 lib/cobrato/exception.rb
cobrato-client-0.12.0 lib/cobrato/exception.rb
cobrato-client-0.11.0 lib/cobrato/exception.rb