FdbErrorMessages
Namespace: FoundationDB.Client · class
Managed error-message table for FdbError codes
Remarks
Each entry is the exact text the native client returns from fdb_get_error; a conformance test in FoundationDB.Tests (FdbErrorMessageFacts) re-checks every entry against the deployed client, so the table cannot drift silently across fdb upgrades.
TryGetMessage returns null for a code this build does not know (a newer fdb): the native paths then fall back to fdb_get_error, while the managed backends (FakeDb, FdbLite) and #ctor fall back to the code's name and number. Known codes never cost an interop call, on any backend.
Methods
TryGetMessage
static string TryGetMessage(FdbError code)
Returns the message for this error code, or null if the code is unknown to this build