瀏覽代碼

Fixed #28525 -- Documented GDAL and GeoIP exceptions.

Nick Pope 7 年之前
父節點
當前提交
11f4c52ec7
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. 12 0
      docs/ref/contrib/gis/gdal.txt
  2. 8 0
      docs/ref/contrib/gis/geoip2.txt

+ 12 - 0
docs/ref/contrib/gis/gdal.txt

@@ -1832,3 +1832,15 @@ Settings
 A string specifying the location of the GDAL library.  Typically,
 A string specifying the location of the GDAL library.  Typically,
 this setting is only used if the GDAL library is in a non-standard
 this setting is only used if the GDAL library is in a non-standard
 location (e.g., ``/home/john/lib/libgdal.so``).
 location (e.g., ``/home/john/lib/libgdal.so``).
+
+Exceptions
+==========
+
+.. exception:: GDALException
+
+    The base GDAL exception, indicating a GDAL-related error.
+
+.. exception:: SRSException
+
+    An exception raised when an error occurs when constructing or using a
+    spatial reference system object.

+ 8 - 0
docs/ref/contrib/gis/geoip2.txt

@@ -168,5 +168,13 @@ The basename to use for the GeoIP country data file. Defaults to
 The basename to use for the GeoIP city data file. Defaults to
 The basename to use for the GeoIP city data file. Defaults to
 ``'GeoLite2-City.mmdb'``.
 ``'GeoLite2-City.mmdb'``.
 
 
+Exceptions
+==========
+
+.. exception:: GeoIP2Exception
+
+    The exception raised when an error occurs in a call to the underlying
+    ``geoip2`` library.
+
 .. rubric:: Footnotes
 .. rubric:: Footnotes
 .. [#] GeoIP(R) is a registered trademark of MaxMind, Inc.
 .. [#] GeoIP(R) is a registered trademark of MaxMind, Inc.