Exception: Camcorder::ProxyPlaybackError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, name, args, side_effects) ⇒ ProxyPlaybackError

Returns a new instance of ProxyPlaybackError.



40
41
42
43
44
45
# File 'lib/camcorder/errors.rb', line 40

def initialize(klass, name, args, side_effects)
  @klass = klass
  @name = name
  @args = args
  @side_effects = side_effects
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



39
40
41
# File 'lib/camcorder/errors.rb', line 39

def args
  @args
end

#klassObject (readonly)

Returns the value of attribute klass.



39
40
41
# File 'lib/camcorder/errors.rb', line 39

def klass
  @klass
end

#nameObject (readonly)

Returns the value of attribute name.



39
40
41
# File 'lib/camcorder/errors.rb', line 39

def name
  @name
end

#side_effectsObject (readonly)

Returns the value of attribute side_effects.



39
40
41
# File 'lib/camcorder/errors.rb', line 39

def side_effects
  @side_effects
end

Instance Method Details

#messageObject



46
47
48
# File 'lib/camcorder/errors.rb', line 46

def message
  "Cannot find recording for #{klass}.#{name} with args: #{args} and side_effects=#{side_effects}"
end