Exception: MotionDataWrapper::RecordNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/motion_data_wrapper/errors/record_not_found.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, id) ⇒ RecordNotFound

Returns a new instance of RecordNotFound.



4
5
6
7
8
# File 'lib/motion_data_wrapper/errors/record_not_found.rb', line 4

def initialize(klass, id)
  @klass = klass
  @id = id
  super("Could not find #{@klass.name} id: #{@id}")
end