Exception: Katello::HttpResource::RestClientException
- Inherits:
-
StandardError
- Object
- StandardError
- Katello::HttpResource::RestClientException
- Defined in:
- app/lib/katello/http_resource.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#service_code ⇒ Object
readonly
Returns the value of attribute service_code.
Instance Method Summary collapse
-
#initialize(params) ⇒ RestClientException
constructor
A new instance of RestClientException.
Constructor Details
#initialize(params) ⇒ RestClientException
Returns a new instance of RestClientException.
11 12 13 14 15 |
# File 'app/lib/katello/http_resource.rb', line 11 def initialize(params) super params[:message] @service_code = params[:service_code] @code = params[:code] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'app/lib/katello/http_resource.rb', line 10 def code @code end |
#service_code ⇒ Object (readonly)
Returns the value of attribute service_code.
10 11 12 |
# File 'app/lib/katello/http_resource.rb', line 10 def service_code @service_code end |