Exception: Gofer::ClusterError
- Inherits:
-
Exception
- Object
- Exception
- Gofer::ClusterError
- Defined in:
- lib/gofer/cluster_error.rb
Overview
Error(s) encountered performing a Gofer command on a cluster of hosts
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Exception instances by host.
Instance Method Summary collapse
-
#initialize(errors = {}) ⇒ ClusterError
constructor
A new instance of ClusterError.
Constructor Details
#initialize(errors = {}) ⇒ ClusterError
Returns a new instance of ClusterError.
8 9 10 11 |
# File 'lib/gofer/cluster_error.rb', line 8 def initialize errors={} @errors = errors super errors.values.map(&:to_s).join(', ') end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Exception instances by host
6 7 8 |
# File 'lib/gofer/cluster_error.rb', line 6 def errors @errors end |