Exception: Graphiti::Errors::InvalidType

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ InvalidType

Returns a new instance of InvalidType.



427
428
429
430
# File 'lib/graphiti/errors.rb', line 427

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

Instance Method Details

#messageObject



432
433
434
# File 'lib/graphiti/errors.rb', line 432

def message
  "Type must be a Hash with keys #{Types::REQUIRED_KEYS.inspect}"
end