OwlCyberSecurity - MANAGER
Edit File: error.cpython-39.pyc
a jH�f* � @ 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 @ s e Zd ZdS )� GDALExceptionN��__name__� __module__�__qualname__� r r �_/home/gouroczh/virtualenv/test/3.9/lib/python3.9/site-packages/django/contrib/gis/gdal/error.pyr s r c @ s e Zd ZdS )�SRSExceptionNr r r r r r s r zNot enough data.zNot enough memory.zUnsupported geometry type.zUnsupported operation.z Corrupt data.zOGR failure.zUnsupported SRS.zInvalid handle.)� � � � � � � � Z AppDefinedZOutOfMemory�FileIOZ OpenFailedZ IllegalArgZNotSupportedZAssertionFailedZ NoWriteAccessZ UserInterruptZ ObjectNull) r r r r r r r r � � � Fc C sF |rt nt}| tkrdS | |v r6|| \}}||��ntd| ��dS )zN Check the given CPL/OGRERR and raise an exception where appropriate. NzUnknown error code: "%s")�CPLERR_DICT�OGRERR_DICT�ERR_NONEr )�codeZcplZerr_dict�e�msgr r r � check_err1 s r N)F)�__doc__� Exceptionr r r r r r r r r r �<module> s0 ��