Exception: ChefApply::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ChefApply::Error
- Defined in:
- lib/chef_apply/error.rb
Direct Known Subclasses
APIError, Action::ConvergeTarget::ConfigUploadFailed, Action::ConvergeTarget::HandlerUploadFailed, Action::ConvergeTarget::PolicyUploadFailed, Action::GenerateTempCookbook::RecipeLookup::CookbookNotFound, Action::GenerateTempCookbook::RecipeLookup::InvalidCookbook, Action::GenerateTempCookbook::RecipeLookup::NoDefaultRecipe, Action::GenerateTempCookbook::RecipeLookup::RecipeNotFound, Action::PolicyfileInstallError, ErrorNoLogs, ErrorNoStack, LicenseCheckFailed
Instance Attribute Summary collapse
-
#decorate ⇒ Object
Returns the value of attribute decorate.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#show_log ⇒ Object
Returns the value of attribute show_log.
-
#show_stack ⇒ Object
Returns the value of attribute show_stack.
Instance Method Summary collapse
-
#initialize(id, *params) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(id, *params) ⇒ Error
Returns a new instance of Error.
22 23 24 25 26 27 28 |
# File 'lib/chef_apply/error.rb', line 22 def initialize(id, *params) @id = id @params = params || [] @show_log = true @show_stack = true @decorate = true end |
Instance Attribute Details
#decorate ⇒ Object
Returns the value of attribute decorate.
21 22 23 |
# File 'lib/chef_apply/error.rb', line 21 def decorate @decorate end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'lib/chef_apply/error.rb', line 20 def id @id end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
20 21 22 |
# File 'lib/chef_apply/error.rb', line 20 def params @params end |
#show_log ⇒ Object
Returns the value of attribute show_log.
21 22 23 |
# File 'lib/chef_apply/error.rb', line 21 def show_log @show_log end |
#show_stack ⇒ Object
Returns the value of attribute show_stack.
21 22 23 |
# File 'lib/chef_apply/error.rb', line 21 def show_stack @show_stack end |