Module error
This module houses the GDAL & SRS Exception objects, and the check_err() routine which checks the status code returned by GDAL/OGR methods.
source linkClasses
Functions
▶ def check_err(code, cpl=False) Check the given CPL/OGRERR and raise an exception where appropriate.