File: //lib/python3/dist-packages/django/contrib/gis/gdal/__pycache__/error.cpython-310.pyc
o
�a* � @ s� d Z G dd� de�ZG dd� de�Zedfedfedfedfed fed
fedfedfd
�Zedfedfedfedfedfedfedfedfedfedfd�
ZdZddd�ZdS )z�
This module houses the GDAL & SRS Exception objects, and the
check_err() routine which checks the status code returned by
GDAL/OGR methods.
c @ � e Zd ZdS )�
GDALExceptionN��__name__�
__module__�__qualname__� r r �?/usr/lib/python3/dist-packages/django/contrib/gis/gdal/error.pyr � r c @ r )�SRSExceptionNr r r r r r
r r
zNot enough data.zNot enough memory.zUnsupported geometry type.zUnsupported operation.z
Corrupt data.zOGR failure.zUnsupported SRS.zInvalid handle.)� � � � � � � � �
AppDefined�OutOfMemory�FileIO�
OpenFailed�
IllegalArg�NotSupported�AssertionFailed�
NoWriteAccess�
UserInterrupt�
ObjectNull)
r r r
r r r r r � �
� Fc C s@ |rt nt}| tkrdS | |v r|| \}}||��td| ��)zN
Check the given CPL/OGRERR and raise an exception where appropriate.
NzUnknown error code: "%s")�CPLERR_DICT�OGRERR_DICT�ERR_NONEr )�code�cpl�err_dict�e�msgr r r � check_err1 s r( N)F)�__doc__� Exceptionr r
r! r r"