Exception: Error::BadResponseCodeError
- Inherits:
-
StandardError
- Object
- StandardError
- Error::BadResponseCodeError
- Defined in:
- lib/logstash/outputs/exception/error.rb
Instance Attribute Summary collapse
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(response_code, url) ⇒ BadResponseCodeError
constructor
A new instance of BadResponseCodeError.
- #message ⇒ Object
Constructor Details
#initialize(response_code, url) ⇒ BadResponseCodeError
Returns a new instance of BadResponseCodeError.
5 6 7 8 |
# File 'lib/logstash/outputs/exception/error.rb', line 5 def initialize(response_code, url) @response_code = response_code @url = url end |
Instance Attribute Details
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
3 4 5 |
# File 'lib/logstash/outputs/exception/error.rb', line 3 def response_code @response_code end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/logstash/outputs/exception/error.rb', line 3 def url @url end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/logstash/outputs/exception/error.rb', line 10 def "Got response code '#{@response_code}' contacting NewRelic at URL '#{@url}'" end |