Exception: GraphQL::DateEncodingError
- Inherits:
 - 
      RuntimeTypeError
      
        
- Object
 - StandardError
 - Error
 - RuntimeTypeError
 - GraphQL::DateEncodingError
 
 
- Defined in:
 - lib/graphql/date_encoding_error.rb
 
Overview
This error is raised when Types::ISO8601Date is asked to return a value
that cannot be parsed to a Ruby Date.
Instance Attribute Summary collapse
- 
  
    
      #date_value  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The value which couldn’t be encoded.
 
Instance Method Summary collapse
- 
  
    
      #initialize(value)  ⇒ DateEncodingError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DateEncodingError.
 
Constructor Details
#initialize(value) ⇒ DateEncodingError
Returns a new instance of DateEncodingError.
      11 12 13 14  | 
    
      # File 'lib/graphql/date_encoding_error.rb', line 11 def initialize(value) @date_value = value super("Date cannot be parsed: #{value}. \nDate must be be able to be parsed as a Ruby Date object.") end  | 
  
Instance Attribute Details
#date_value ⇒ Object (readonly)
The value which couldn’t be encoded
      9 10 11  | 
    
      # File 'lib/graphql/date_encoding_error.rb', line 9 def date_value @date_value end  |