Exception: Snapshoter::VolumeInvalid
- Inherits:
-
Exception
- Object
- Exception
- Snapshoter::VolumeInvalid
- Defined in:
- lib/snapshoter/volume.rb
Instance Method Summary collapse
-
#initialize(id, errors) ⇒ VolumeInvalid
constructor
A new instance of VolumeInvalid.
- #message ⇒ Object
Constructor Details
#initialize(id, errors) ⇒ VolumeInvalid
Returns a new instance of VolumeInvalid.
3 4 5 6 |
# File 'lib/snapshoter/volume.rb', line 3 def initialize(id, errors) @id = id @errors = errors end |
Instance Method Details
#message ⇒ Object
8 9 10 |
# File 'lib/snapshoter/volume.rb', line 8 def "Error with configuration of volume #{@id || '<unknown>'}:\n #{@errors.join("\n ")}\n" end |