Exception: Carload::UnmanagedModelError
- Defined in:
- lib/carload/exceptions.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(data) ⇒ UnmanagedModelError
constructor
A new instance of UnmanagedModelError.
Constructor Details
#initialize(data) ⇒ UnmanagedModelError
Returns a new instance of UnmanagedModelError.
7 8 9 |
# File 'lib/carload/exceptions.rb', line 7 def initialize data @message = I18n.t('carload.error.message.unmanaged_model', model: data) end |