Skip to content

docs: add error handling documentation page for GDAL C/C++ API#14071

Closed
LoveChauhan-18 wants to merge 5 commits intoOSGeo:masterfrom
LoveChauhan-18:doc-error-handling-page
Closed

docs: add error handling documentation page for GDAL C/C++ API#14071
LoveChauhan-18 wants to merge 5 commits intoOSGeo:masterfrom
LoveChauhan-18:doc-error-handling-page

Conversation

@LoveChauhan-18
Copy link
Contributor

This PR adds a dedicated documentation page describing error handling in the GDAL C/C++ API.

The page documents:

  • GDAL error levels
  • How errors are reported using CPLError
  • How applications can retrieve error messages
  • How to install custom error handlers

This improves discoverability of GDAL error handling for developers.

Fixes #13778

@LoveChauhan-18
Copy link
Contributor Author

Hi, I have added a new documentation page describing GDAL C/C++ API error handling and linked it in the development documentation index.

Please let me know if any improvements or adjustments are needed.

@rouault
Copy link
Member

rouault commented Mar 5, 2026

Please let me know if any improvements or adjustments are needed.

yes, but I would spend more time specifying them than writing them myself. I'm not super keen in "educating" a LLM. Sigh. And by the way please keep the checkbox in the PR template about LLM use and tick it when needed

@rouault
Copy link
Member

rouault commented Mar 10, 2026

superseded per #14100

@rouault rouault closed this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C/C++ API doc: add some clearly visible page about error handling

2 participants