Sha256: 6cb4e05c02874b4f60a32e2275344b85425664a291f642c4c7ab83dd400e2cd5

Contents?: true

Size: 296 Bytes

Versions: 11

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

module GraphqlRails
  # base class which is returned in case something bad happens. Contains all error rendering tructure
  class SystemError < ExecutionError
    def to_h
      super.except('locations')
    end

    def type
      'system_error'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
graphql_rails-2.2.0 lib/graphql_rails/errors/system_error.rb
graphql_rails-2.1.0 lib/graphql_rails/errors/system_error.rb
graphql_rails-2.0.0 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.2.6 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.2.4 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.2.3 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.2.2 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.2.1 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.2.0 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.1.0 lib/graphql_rails/errors/system_error.rb
graphql_rails-1.0.0 lib/graphql_rails/errors/system_error.rb