Sha256: 7ace28b934d179d914f75a060efc8f53694b6c4ad7088641936aeb38973e213e
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
# encoding: utf-8 module Github #:nodoc # Raised when Github returns the HTTP status code 404 module Error class ServiceError < GithubError attr_accessor :http_headers def initialize(env) super(generate_message(env)) @http_headers = env[:response_headers] end def generate_message(env) "#{env[:method].to_s.upcase} #{env[:url].to_s}: #{env[:status]} #{env[:body]}" end end end # Error end # Github
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.4.6 | lib/github_api/error/service_error.rb |
github_api-0.4.5 | lib/github_api/error/service_error.rb |