Exception: Camcorder::PlaybackError

Inherits:
Error
  • Object
show all
Defined in:
lib/camcorder/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ PlaybackError

Returns a new instance of PlaybackError.



30
31
32
# File 'lib/camcorder/errors.rb', line 30

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



29
30
31
# File 'lib/camcorder/errors.rb', line 29

def key
  @key
end

Instance Method Details

#messageObject



33
34
35
# File 'lib/camcorder/errors.rb', line 33

def message
  "Cannot find key '#{key}' for playback"
end