Exception: Toys::Settings::FieldError
- Inherits:
-
StandardError
- Object
- StandardError
- Toys::Settings::FieldError
- Defined in:
- toys-core/lib/toys/settings.rb
Overview
Defined in the toys-core gem
Error raised when a value does not match the type constraint.
Instance Attribute Summary collapse
-
#field_name ⇒ Symbol
readonly
The field that rejected the value.
-
#settings_class ⇒ Class
readonly
The settings class that rejected the value.
-
#type_description ⇒ String?
readonly
A description of the type constraint, or nil if the field didn't exist.
-
#value ⇒ Object
readonly
The value that did not match.
Instance Attribute Details
#field_name ⇒ Symbol (readonly)
The field that rejected the value
342 343 344 |
# File 'toys-core/lib/toys/settings.rb', line 342 def field_name @field_name end |
#settings_class ⇒ Class (readonly)
The settings class that rejected the value
336 337 338 |
# File 'toys-core/lib/toys/settings.rb', line 336 def settings_class @settings_class end |
#type_description ⇒ String? (readonly)
A description of the type constraint, or nil if the field didn't exist.
348 349 350 |
# File 'toys-core/lib/toys/settings.rb', line 348 def type_description @type_description end |
#value ⇒ Object (readonly)
The value that did not match
330 331 332 |
# File 'toys-core/lib/toys/settings.rb', line 330 def value @value end |