Exception: PlanMyStuff::ValidationError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised when custom field validation fails (Phase 1)
Instance Attribute Summary collapse
- #expected_type ⇒ Symbol? readonly
- #field ⇒ String? readonly
Instance Method Summary collapse
-
#initialize(message = nil, field: nil, expected_type: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message = nil, field: nil, expected_type: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
81 82 83 84 85 |
# File 'lib/plan_my_stuff/errors.rb', line 81 def initialize( = nil, field: nil, expected_type: nil) @field = field @expected_type = expected_type super() end |
Instance Attribute Details
#expected_type ⇒ Symbol? (readonly)
75 76 77 |
# File 'lib/plan_my_stuff/errors.rb', line 75 def expected_type @expected_type end |
#field ⇒ String? (readonly)
72 73 74 |
# File 'lib/plan_my_stuff/errors.rb', line 72 def field @field end |