apple / apple/foundationdb

Go bindings: translate_fdb_options.go should generate error predicates as functions

Open
#390 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

The error predicates get generated as constants by go, but I couldn't find a place where this was exposed. In any case, it would probably be better if those were made available as a series of methods on the Error class (à la FDBException.java).

Contributor guide

Open the contributing guide

Research direction

Start by reading go bindings/translate_fdb_options.go and compare the generated error handling with FDBException.java. Trace how the Go Error type is exposed, then verify that the generated bindings provide callable error predicates corresponding to the Java methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java
Domain
backend-api-design, database, distributed-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.