step 1: lock public api and pure core
This commit is contained in:
@@ -1 +1,29 @@
|
||||
"""Public exception types."""
|
||||
"""Public exception types for dpg-map."""
|
||||
|
||||
|
||||
class DpgMapError(Exception):
|
||||
"""Base exception for all public dpg-map errors."""
|
||||
|
||||
|
||||
class DpgMapNotImplementedError(DpgMapError, NotImplementedError):
|
||||
"""Raised by public APIs that are intentionally stubbed during the rebuild."""
|
||||
|
||||
|
||||
class ProviderError(DpgMapError):
|
||||
"""Base exception for tile provider errors."""
|
||||
|
||||
|
||||
class ProviderExistsError(ProviderError):
|
||||
"""Raised when registering a provider name that already exists."""
|
||||
|
||||
|
||||
class ProviderNotFoundError(ProviderError):
|
||||
"""Raised when a requested tile provider is not registered."""
|
||||
|
||||
|
||||
class InvalidProviderError(ProviderError, ValueError):
|
||||
"""Raised when a tile provider definition is invalid."""
|
||||
|
||||
|
||||
class ProjectionError(DpgMapError, ValueError):
|
||||
"""Raised when geographic projection input is invalid."""
|
||||
|
||||
Reference in New Issue
Block a user