Sha256: 1e805f0b70766fe3847ef2286c35139a0bd047e83c1296f2705bbf4fc98a23c3

Contents?: true

Size: 168 Bytes

Versions: 20

Compression:

Stored size: 168 Bytes

Contents

module GraphqlDevise
  class UserError < GraphQL::ExecutionError
    def to_h
      super.merge(extensions: { code: ERROR_CODES.fetch(:user_error) })
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
graphql_devise-0.12.0 lib/graphql_devise/user_error.rb
graphql_devise-0.11.4 lib/graphql_devise/user_error.rb
graphql_devise-0.11.3 lib/graphql_devise/user_error.rb
graphql_devise-0.11.2 lib/graphql_devise/user_error.rb
graphql_devise-0.11.1 lib/graphql_devise/user_error.rb
graphql_devise-0.11.0 lib/graphql_devise/user_error.rb
graphql_devise-0.10.1 lib/graphql_devise/user_error.rb
graphql_devise-0.10.0 lib/graphql_devise/user_error.rb
graphql_devise-0.9.2 lib/graphql_devise/user_error.rb
graphql_devise-0.9.1 lib/graphql_devise/user_error.rb
graphql_devise-0.9.0 lib/graphql_devise/user_error.rb
graphql_devise-0.8.1 lib/graphql_devise/user_error.rb
graphql_devise-0.8.0 lib/graphql_devise/user_error.rb
graphql_devise-0.7.0 lib/graphql_devise/user_error.rb
graphql_devise-0.6.0 lib/graphql_devise/user_error.rb
graphql_devise-0.5.0 lib/graphql_devise/user_error.rb
graphql_devise-0.4.1 lib/graphql_devise/user_error.rb
graphql_devise-0.4.0 lib/graphql_devise/user_error.rb
graphql_devise-0.3.0 lib/graphql_devise/user_error.rb
graphql_devise-0.2.0 lib/graphql_devise/user_error.rb