Exception: GQL::Errors::UndefinedCall
- Inherits:
-
GQL::Error
- Object
- StandardError
- GQL::Error
- GQL::Errors::UndefinedCall
- Defined in:
- lib/gql/errors.rb
Instance Method Summary collapse
-
#initialize(name, node_class) ⇒ UndefinedCall
constructor
A new instance of UndefinedCall.
Constructor Details
#initialize(name, node_class) ⇒ UndefinedCall
37 38 39 40 41 42 |
# File 'lib/gql/errors.rb', line 37 def initialize(name, node_class) calls = node_class.call_classes.keys.sort.map { |name| "`#{name}`" } calls = calls.size > 0 ? " Available calls: #{calls.to_sentence}." : '' super("#{node_class} has no call named `#{name}`.#{calls}") end |