Exception: ViewModel::Migration::StrictMigrationError
- Inherits:
-
AbstractError
- Object
- StandardError
- AbstractError
- ViewModel::Migration::StrictMigrationError
- Defined in:
- lib/view_model/migration/strict_migration_error.rb
Instance Attribute Summary collapse
-
#vm_name ⇒ Object
readonly
Returns the value of attribute vm_name.
Instance Method Summary collapse
- #detail ⇒ Object
-
#initialize(vm_name) ⇒ StrictMigrationError
constructor
A new instance of StrictMigrationError.
- #meta ⇒ Object
Methods inherited from AbstractError
#aggregation?, #causes, #code, #exception, #status, #title, #to_s, #view
Constructor Details
#initialize(vm_name) ⇒ StrictMigrationError
Returns a new instance of StrictMigrationError.
9 10 11 12 |
# File 'lib/view_model/migration/strict_migration_error.rb', line 9 def initialize(vm_name) @vm_name = vm_name super() end |
Instance Attribute Details
#vm_name ⇒ Object (readonly)
Returns the value of attribute vm_name.
4 5 6 |
# File 'lib/view_model/migration/strict_migration_error.rb', line 4 def vm_name @vm_name end |
Instance Method Details
#detail ⇒ Object
14 15 16 |
# File 'lib/view_model/migration/strict_migration_error.rb', line 14 def detail "No version was provided for the view #{vm_name}" end |
#meta ⇒ Object
18 19 20 21 22 |
# File 'lib/view_model/migration/strict_migration_error.rb', line 18 def { viewmodel: vm_name, } end |