Exception: GraphQL::FragmentCache::WriteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/graphql/fragment_cache/cacher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_error, key, value) ⇒ WriteError

Returns a new instance of WriteError.



10
11
12
13
14
15
16
# File 'lib/graphql/fragment_cache/cacher.rb', line 10

def initialize(original_error, key, value)
  @original_error = original_error
  @key = key
  @value = value

  super(original_error.message)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



8
9
10
# File 'lib/graphql/fragment_cache/cacher.rb', line 8

def key
  @key
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



8
9
10
# File 'lib/graphql/fragment_cache/cacher.rb', line 8

def original_error
  @original_error
end

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/graphql/fragment_cache/cacher.rb', line 8

def value
  @value
end