refactor: excel parse

This commit is contained in:
Blizzard
2026-04-16 10:01:11 +08:00
parent 680ecc320f
commit f62f95ec02
7941 changed files with 2899112 additions and 0 deletions
@@ -0,0 +1,27 @@
"""
Exceptions for pyproj
"""
from pyproj._datadir import _clear_proj_error, _get_proj_error
class ProjError(RuntimeError):
"""Raised when a Proj error occurs."""
def __init__(self, error_message: str) -> None:
proj_error = _get_proj_error()
if proj_error is not None:
error_message = f"{error_message}: (Internal Proj Error: {proj_error})"
_clear_proj_error()
super().__init__(error_message)
class CRSError(ProjError):
"""Raised when a CRS error occurs."""
class GeodError(RuntimeError):
"""Raised when a Geod error occurs."""
class DataDirError(RuntimeError):
"""Raised when a the data directory was not found."""