Exception: Snapshoter::VolumeInvalid

Inherits:
Exception
  • Object
show all
Defined in:
lib/snapshoter/volume.rb

Instance Method Summary collapse

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

#messageObject



8
9
10
# File 'lib/snapshoter/volume.rb', line 8

def message
  "Error with configuration of volume #{@id || '<unknown>'}:\n  #{@errors.join("\n  ")}\n"
end