Exception: Script::Layers::Infrastructure::Errors::GraphqlError

Inherits:
ScriptProjectError
  • Object
show all
Defined in:
lib/project_types/script/layers/infrastructure/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ GraphqlError

Returns a new instance of GraphqlError.



15
16
17
18
# File 'lib/project_types/script/layers/infrastructure/errors.rb', line 15

def initialize(errors)
  @errors = errors
  super("GraphQL failed with errors: #{errors}")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



14
15
16
# File 'lib/project_types/script/layers/infrastructure/errors.rb', line 14

def errors
  @errors
end