Exception: Uatu::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/uatu/error.rb

Direct Known Subclasses

BadRequest, ClientError

Defined Under Namespace

Classes: BadRequest, ClientError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_headers = {}) ⇒ Error

Returns a new instance of Error.



5
6
7
8
# File 'lib/uatu/error.rb', line 5

def initialize(message, http_headers={})
  @http_headers = http_headers
  super(message)
end

Instance Attribute Details

#http_headersObject (readonly)

Returns the value of attribute http_headers.



3
4
5
# File 'lib/uatu/error.rb', line 3

def http_headers
  @http_headers
end