Sha256: e69014632e6881d4e17f16d600137b9eb79456df2028ae247c4464e20a3956ff

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

module Sesame
  class Error < StandardError
    attr_reader :status, :code

    def initialize(status, data)
      super(data['error'])
      @data = data
      @status = status
    end

    def to_s
      %(#{@data['error']} HTTP: #{status})
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sesame-ruby-1.0.0 lib/sesame/error.rb