Sha256: 27637f20dc7104db9db10a15039f3432eecd140b046e99bf8c589e33668bbb83

Contents?: true

Size: 532 Bytes

Versions: 121

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  # 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
  class DateEncodingError < GraphQL::RuntimeTypeError
    # The value which couldn't be encoded
    attr_reader :date_value

    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
  end
end

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
graphql-2.4.14 lib/graphql/date_encoding_error.rb
graphql-2.3.22 lib/graphql/date_encoding_error.rb
graphql-2.1.15 lib/graphql/date_encoding_error.rb
graphql-1.13.24 lib/graphql/date_encoding_error.rb
graphql-2.0.32 lib/graphql/date_encoding_error.rb
graphql-2.1.14 lib/graphql/date_encoding_error.rb
graphql-2.2.17 lib/graphql/date_encoding_error.rb
graphql-2.3.21 lib/graphql/date_encoding_error.rb
graphql-2.4.13 lib/graphql/date_encoding_error.rb
graphql-2.4.12 lib/graphql/date_encoding_error.rb
graphql-2.4.11 lib/graphql/date_encoding_error.rb
graphql-2.4.10 lib/graphql/date_encoding_error.rb
graphql-2.4.9 lib/graphql/date_encoding_error.rb
graphql-2.4.8 lib/graphql/date_encoding_error.rb
graphql-2.4.7 lib/graphql/date_encoding_error.rb
graphql-2.4.6 lib/graphql/date_encoding_error.rb
graphql-2.4.5 lib/graphql/date_encoding_error.rb
graphql-2.4.4 lib/graphql/date_encoding_error.rb
graphql-2.4.3 lib/graphql/date_encoding_error.rb
graphql-2.4.2 lib/graphql/date_encoding_error.rb