class GraphQL::DateEncodingError

This error is raised when `Types::ISO8601Date` is asked to return a value that cannot be parsed to a Ruby Date.

@see GraphQL::Types::ISO8601Date which raises this error

Attributes

date_value[R]

The value which couldn't be encoded

Public Class Methods

new(value) click to toggle source
Calls superclass method
# 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