• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Giorgi / DuckDB.NET / 28124381951

24 Jun 2026 07:32PM UTC coverage: 89.339% (-0.02%) from 89.358%
28124381951

push

github

Giorgi
Include DuckDB error type when throwing DuckDBException

Add the duckdb_error_data_error_type binding and pass the resolved
error type to DuckDBException in ThrowOnError. Also drop unused usings
in DuckDBArrowArrayStream, DuckDBCommand, and DuckDBDataReader.

1359 of 1583 branches covered (85.85%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

2856 of 3135 relevant lines covered (91.1%)

420579.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/DuckDB.NET.Data/Extensions/DuckDBErrorDataExtensions.cs
1
namespace DuckDB.NET.Data.Extensions;
2

3
internal static class DuckDBErrorDataExtensions
4
{
5
    public static void ThrowOnError(this DuckDBErrorData errorData, string message)
6
    {
7
        using (errorData)
66✔
8
        {
9
            if (errorData.HasError)
66!
10
            {
NEW
11
                var errorType = NativeMethods.ErrorData.DuckDBErrorDataErrorType(errorData);
×
NEW
12
                throw new DuckDBException($"{message} {errorData.Message}".TrimEnd(), errorType);
×
13
            }
14
        }
66✔
15
    }
66✔
16
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc