Class: GraphqlRails::SystemError
- Inherits:
-
ExecutionError
- Object
- GraphQL::ExecutionError
- ExecutionError
- GraphqlRails::SystemError
- Defined in:
- lib/graphql_rails/errors/system_error.rb
Overview
Base class which is returned in case something bad happens. Contains all error rendering structure
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(original_error) ⇒ SystemError
constructor
A new instance of SystemError.
- #to_h ⇒ Object
- #type ⇒ Object
Methods inherited from ExecutionError
Constructor Details
#initialize(original_error) ⇒ SystemError
Returns a new instance of SystemError.
10 11 12 13 14 |
# File 'lib/graphql_rails/errors/system_error.rb', line 10 def initialize(original_error) super(original_error.) @original_error = original_error end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
8 9 10 |
# File 'lib/graphql_rails/errors/system_error.rb', line 8 def original_error @original_error end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/graphql_rails/errors/system_error.rb', line 16 def to_h super.except('locations') end |
#type ⇒ Object
20 21 22 |
# File 'lib/graphql_rails/errors/system_error.rb', line 20 def type 'system_error' end |