Exception: ChefDK::PolicyfileNestedException
- Inherits:
-
PolicyfileServiceError
- Object
- StandardError
- PolicyfileServiceError
- ChefDK::PolicyfileNestedException
- Defined in:
- lib/chef-dk/service_exceptions.rb
Direct Known Subclasses
PolicyfileDownloadError, PolicyfileExportRepoError, PolicyfileInstallError, PolicyfilePushError, PolicyfileUpdateError
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#inspector ⇒ Object
readonly
Returns the value of attribute inspector.
Instance Method Summary collapse
- #extended_error_info ⇒ Object
-
#initialize(message, cause) ⇒ PolicyfileNestedException
constructor
A new instance of PolicyfileNestedException.
- #reason ⇒ Object
Constructor Details
#initialize(message, cause) ⇒ PolicyfileNestedException
Returns a new instance of PolicyfileNestedException.
53 54 55 56 57 |
# File 'lib/chef-dk/service_exceptions.rb', line 53 def initialize(, cause) super() @inspector = inspector_for(cause) @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
50 51 52 |
# File 'lib/chef-dk/service_exceptions.rb', line 50 def cause @cause end |
#inspector ⇒ Object (readonly)
Returns the value of attribute inspector.
51 52 53 |
# File 'lib/chef-dk/service_exceptions.rb', line 51 def inspector @inspector end |
Instance Method Details
#extended_error_info ⇒ Object
63 64 65 |
# File 'lib/chef-dk/service_exceptions.rb', line 63 def extended_error_info inspector.extended_error_info end |
#reason ⇒ Object
59 60 61 |
# File 'lib/chef-dk/service_exceptions.rb', line 59 def reason "(#{cause.class.name}) #{inspector.message}" end |