Exception: Camcorder::ProxyRecordingError

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) ⇒ ProxyRecordingError

Returns a new instance of ProxyRecordingError.



17
18
19
20
21
22
# File 'lib/camcorder/errors.rb', line 17

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.



16
17
18
# File 'lib/camcorder/errors.rb', line 16

def args
  @args
end

#klassObject (readonly)

Returns the value of attribute klass.



16
17
18
# File 'lib/camcorder/errors.rb', line 16

def klass
  @klass
end

#nameObject (readonly)

Returns the value of attribute name.



16
17
18
# File 'lib/camcorder/errors.rb', line 16

def name
  @name
end

#side_effectsObject (readonly)

Returns the value of attribute side_effects.



16
17
18
# File 'lib/camcorder/errors.rb', line 16

def side_effects
  @side_effects
end

Instance Method Details

#messageObject



23
24
25
# File 'lib/camcorder/errors.rb', line 23

def message
  "Recording for #{klass}.#{name} with args: #{args} and side_effects=#{side_effects} has changed. Consider using using `methods_with_side_effects`."
end