Exception: Toys::Settings::FieldError
- Inherits:
-
StandardError
- Object
- StandardError
- Toys::Settings::FieldError
- Defined in:
- lib/toys/settings.rb
Overview
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
328 329 330 |
# File 'lib/toys/settings.rb', line 328 def field_name @field_name end |
#settings_class ⇒ Class (readonly)
The settings class that rejected the value
322 323 324 |
# File 'lib/toys/settings.rb', line 322 def settings_class @settings_class end |
#type_description ⇒ String? (readonly)
A description of the type constraint, or nil if the field didn't exist.
334 335 336 |
# File 'lib/toys/settings.rb', line 334 def type_description @type_description end |
#value ⇒ Object (readonly)
The value that did not match
316 317 318 |
# File 'lib/toys/settings.rb', line 316 def value @value end |