Exception: Github::Error::BadRequest

Inherits:
ServiceError show all
Defined in:
lib/github_api/error/bad_request.rb

Overview

Raised when Github returns the HTTP status code 400

Constant Summary

Constants inherited from ServiceError

ServiceError::MIN_BODY_LENGTH

Instance Attribute Summary

Attributes inherited from ServiceError

#body, #http_headers, #status

Attributes inherited from GithubError

#response_headers, #response_message

Instance Method Summary collapse

Methods inherited from ServiceError

#decode_body, errors, http_status_code, #parse_body, #parse_response

Methods included from Jsonable

#decode

Methods inherited from GithubError

#backtrace

Constructor Details

#initialize(response) ⇒ BadRequest

Returns a new instance of BadRequest.



9
10
11
# File 'lib/github_api/error/bad_request.rb', line 9

def initialize(response)
  super(response)
end