Exception: ChefZero::RestErrorResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef_zero/rest_error_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_code, error) ⇒ RestErrorResponse

Returns a new instance of RestErrorResponse


3
4
5
6
# File 'lib/chef_zero/rest_error_response.rb', line 3

def initialize(response_code, error)
  @response_code = response_code
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error


9
10
11
# File 'lib/chef_zero/rest_error_response.rb', line 9

def error
  @error
end

#response_codeObject (readonly)

Returns the value of attribute response_code


8
9
10
# File 'lib/chef_zero/rest_error_response.rb', line 8

def response_code
  @response_code
end