Sha256: a814c9c3e8673a19f78ddcf088683f7e72b39ffcc7434fa78d2844782ea95ec5

Contents?: true

Size: 314 Bytes

Versions: 8

Compression:

Stored size: 314 Bytes

Contents

class Error
  class BadResponseCodeError < StandardError
    attr_reader :url, :response_code

    def initialize(response_code, url)
      @response_code = response_code
      @url = url
    end

    def message
      "Got response code '#{@response_code}' contacting NewRelic at URL '#{@url}'"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logstash-output-newrelic-1.5.2 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.5.1 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.5.0 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.4.0 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.3.0 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.2.2 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.2.1 lib/logstash/outputs/exception/error.rb
logstash-output-newrelic-1.2.0 lib/logstash/outputs/exception/error.rb