Exception: ChefZero::DataStore::DataError
- Inherits:
-
StandardError
- Object
- StandardError
- ChefZero::DataStore::DataError
- Defined in:
- lib/chef_zero/data_store/data_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, cause = nil) ⇒ DataError
constructor
A new instance of DataError.
Constructor Details
#initialize(path, cause = nil) ⇒ DataError
Returns a new instance of DataError.
24 25 26 27 28 29 |
# File 'lib/chef_zero/data_store/data_error.rb', line 24 def initialize(path, cause = nil) @path = path @cause = cause path_for_msg = path.nil? ? "nil" : "/#{path.join("/")}" super "Data path: #{path_for_msg}" end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
22 23 24 |
# File 'lib/chef_zero/data_store/data_error.rb', line 22 def cause @cause end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
22 23 24 |
# File 'lib/chef_zero/data_store/data_error.rb', line 22 def path @path end |