⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for errorObject (0.000 sec.)
C++ API 9414
Installation To use the DuckDB C++ API, download the libduckdb archive for your platform. The latest stable version of the DuckDB C++ API is 2.0.0. Warning DuckDB's C++ API is internal. It is not guaranteed to be stable and can change witho ... eryResult to return true . In this case, the error message is available via GetError() . The methods GetErrorType() and GetErrorObject() are also available for any QueryResult instance which may aid in more explicit error handling. auto result = con.Query(" ... rrorType = result->GetErrorType(); switch (errorType) { case duckdb::ExceptionType::CONSTRAINT: { // Example handling auto errorObject = result->GetErrorObject(); errorObject.ConvertErrorToJSON(); std::cout << errorObject.Message() << std::endl; break; } // ...
https://man.mtool.work/duckdb/2.0/clients/cpp.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work