class Twitch::ApiError

An error returned by the API.

Attributes

body[R]

Body content of the response.

status_code[R]

HTTP status code of the response.

Public Class Methods

new(status_code, body) click to toggle source
Calls superclass method
# File lib/twitch/api_error.rb, line 9
def initialize(status_code, body)
  @status_code = status_code
  @body = body

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