Exception: Librato::Metrics::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/librato/metrics/errors.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response = nil) ⇒ NetworkError

Returns a new instance of NetworkError



16
17
18
19
# File 'lib/librato/metrics/errors.rb', line 16

def initialize(msg, response = nil)
  super(msg)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response



14
15
16
# File 'lib/librato/metrics/errors.rb', line 14

def response
  @response
end