Exception: Katello::HttpResource::RestClientException

Inherits:
StandardError
  • Object
show all
Defined in:
app/lib/katello/http_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'app/lib/katello/http_resource.rb', line 10

def code
  @code
end

#service_codeObject (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