Exception: ChefCore::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ChefCore::Error
- Defined in:
- lib/chef_core/error.rb
Direct Known Subclasses
APIError, MultiJobFailure, TargetHost::ConnectionFailure, TargetHost::RemoteExecutionFailed, TargetHost::UnsupportedTargetOS, TargetResolver::TargetResolverError
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
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.
21 22 23 24 |
# File 'lib/chef_core/error.rb', line 21 def initialize(id, *params) @id = id @params = params || [] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'lib/chef_core/error.rb', line 20 def id @id end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
20 21 22 |
# File 'lib/chef_core/error.rb', line 20 def params @params end |