Sha256: 8cfc3dd1a9c1d073d66452d9bd563f1642b29651be101e726b91376b2cbb514c

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

module Twitch
  class ApiError < StandardError
    attr_reader :status_code, :body

    def initialize(status_code, body)
      @status_code = status_code
      @body = body

      msg = "The server returned error #{status_code}"
      super(msg)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitch-api-0.1.0 lib/twitch/api_error.rb