Exception: ForestAdminAgent::Http::Exceptions::HttpException
- Inherits:
-
StandardError
- Object
- StandardError
- ForestAdminAgent::Http::Exceptions::HttpException
- Defined in:
- lib/forest_admin_agent/http/Exceptions/http_exception.rb
Instance Attribute Summary collapse
-
#custom_headers ⇒ Object
readonly
Returns the value of attribute custom_headers.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, name, message, data = {}, custom_headers = {}) ⇒ HttpException
constructor
A new instance of HttpException.
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, , data = {}, custom_headers = {}) super() @status = status @name = name @data = data @custom_headers = custom_headers end |
Instance Attribute Details
#custom_headers ⇒ Object (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 |
#data ⇒ Object (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 |
#name ⇒ Object (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 |
#status ⇒ Object (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 |