Converts a bigint value to a FetchErrorCode enum.
The bigint value.
The corresponding FetchErrorCode.
CastingError if the value is not a valid fetch error code.
Converts a bigint value to a FetchErrorCode enum.