Exception: PlanMyStuff::ValidationError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised when custom field validation fails (Phase 1)
Direct Known Subclasses
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.
92 93 94 95 96 |
# File 'lib/plan_my_stuff/errors.rb', line 92 def initialize( = nil, field: nil, expected_type: nil) @field = field @expected_type = expected_type super() end |
Instance Attribute Details
#expected_type ⇒ Symbol? (readonly)
86 87 88 |
# File 'lib/plan_my_stuff/errors.rb', line 86 def expected_type @expected_type end |
#field ⇒ String? (readonly)
83 84 85 |
# File 'lib/plan_my_stuff/errors.rb', line 83 def field @field end |