Exception: ForestAdminAgent::Http::Exceptions::HttpException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/forest_admin_agent/http/Exceptions/http_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, name, message, data = {}, custom_headers = {}) ⇒ HttpException

Returns a new instance of HttpException.



9
10
11
12
13
14
15
16
# File 'lib/forest_admin_agent/http/Exceptions/http_exception.rb', line 9

def initialize(status, name, message, data = {}, custom_headers = {})
  super(message)

  @status = status
  @name = name
  @data = data
  @custom_headers = custom_headers
end

Instance Attribute Details

#custom_headersObject (readonly)

Returns the value of attribute custom_headers.



7
8
9
# File 'lib/forest_admin_agent/http/Exceptions/http_exception.rb', line 7

def custom_headers
  @custom_headers
end

#dataObject (readonly)

Returns the value of attribute data.



7
8
9
# File 'lib/forest_admin_agent/http/Exceptions/http_exception.rb', line 7

def data
  @data
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/forest_admin_agent/http/Exceptions/http_exception.rb', line 7

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/forest_admin_agent/http/Exceptions/http_exception.rb', line 7

def status
  @status
end