Exception: ChefLicensing::ListLicensesError

Inherits:
Error
  • Object
show all
Defined in:
lib/chef-licensing/exceptions/list_licenses_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code) ⇒ ListLicensesError

Returns a new instance of ListLicensesError.



7
8
9
10
# File 'lib/chef-licensing/exceptions/list_licenses_error.rb', line 7

def initialize(message, status_code)
  @status_code = status_code
  super(message)
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



5
6
7
# File 'lib/chef-licensing/exceptions/list_licenses_error.rb', line 5

def status_code
  @status_code
end