Exception: MotionDataWrapper::RecordNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- MotionDataWrapper::RecordNotFound
- Defined in:
- lib/motion_data_wrapper/errors/record_not_found.rb
Instance Method Summary collapse
-
#initialize(klass, id) ⇒ RecordNotFound
constructor
A new instance of RecordNotFound.
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 |