Sha256: 77a8900011156874644dc5f360a3ccc2d3a1aa4f3136f597bba82781bf6df70b

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

module CircleCIReporter
  class Error < StandardError; end

  class RequestError < Error
    attr_reader :resp

    # @param message [String]
    # @param resp [Faraday::Response]
    def initialize(message, resp)
      @message = message
      @resp = resp
      super(message)
    end
  end

  class NoActiveReporter < Error; end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
circleci_reporter-1.0.1 lib/circleci_reporter/errors.rb
circleci_reporter-1.0.0 lib/circleci_reporter/errors.rb