Class: Configuration::SourceFailoverAllFailedError
- Inherits:
-
ConfigurationError
- Object
- Configuration::SourceFailoverAllFailedError
- Defined in:
- lib/httpimagestore/configuration/source_failover.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(sources, errors) ⇒ SourceFailoverAllFailedError
constructor
A new instance of SourceFailoverAllFailedError.
Constructor Details
#initialize(sources, errors) ⇒ SourceFailoverAllFailedError
Returns a new instance of SourceFailoverAllFailedError.
7 8 9 10 11 |
# File 'lib/httpimagestore/configuration/source_failover.rb', line 7 def initialize(sources, errors) @sources = sources @errors = errors super "all sources failed: #{sources.zip(errors).map{|s, e| "#{s}(#{e.class.name}: #{e.})"}.join(', ')}" end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/httpimagestore/configuration/source_failover.rb', line 5 def errors @errors end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
5 6 7 |
# File 'lib/httpimagestore/configuration/source_failover.rb', line 5 def sources @sources end |