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.


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

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


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

def response
  @response
end