123456789_123456789_123456789_123456789_123456789_

Class: Octokit::Response::RaiseError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, BaseMiddleware
Instance Chain:
self, BaseMiddleware
Inherits: BaseMiddleware
  • Object
Defined in: lib/octokit/response/raise_error.rb

Overview

This class raises an Octokit-flavored exception based HTTP status codes returned by the API

Instance Method Summary

Instance Method Details

#on_complete(response)

[ GitHub ]

  
# File 'lib/octokit/response/raise_error.rb', line 12

def on_complete(response)
  if error = Octokit::Error.from_response(response)
    raise error
  end
end