Sha256: 50fb8c13a22b3068ba934ba868865b5eb5ac7b4121128b2c30ab3e8e8ecdacc1
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
# encoding: utf-8 require 'descendants_tracker' module Github module Error class GithubError < StandardError extend DescendantsTracker attr_reader :response_message, :response_headers # Initialize a new Github error object. # def initialize(message=$!) if message.respond_to?(:backtrace) super(message.message) @response_message = message else super(message.to_s) end end def backtrace @response_message ? @response_message.backtrace : super end end # GithubError end # Error end # Github require 'github_api/error/service_error' require 'github_api/error/client_error'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.14.3 | lib/github_api/error.rb |