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
      326 327 328  | 
    
      # File 'lib/toys/settings.rb', line 326 def field_name @field_name end  | 
  
#settings_class ⇒ Class (readonly)
The settings class that rejected the value
      320 321 322  | 
    
      # File 'lib/toys/settings.rb', line 320 def settings_class @settings_class end  | 
  
#type_description ⇒ String? (readonly)
A description of the type constraint, or nil if the field didn't exist.
      332 333 334  | 
    
      # File 'lib/toys/settings.rb', line 332 def type_description @type_description end  | 
  
#value ⇒ Object (readonly)
The value that did not match
      314 315 316  | 
    
      # File 'lib/toys/settings.rb', line 314 def value @value end  |