Errors

exception mappyng.errors.MapError[source]

Bases: Exception

Base exception for all mappyng-related errors.

exception mappyng.errors.RenderError[source]

Bases: MapError

Raised when an error occurs during SVG rendering.

exception mappyng.errors.CartoucheError[source]

Bases: MapError

Raised when an error occurs in cartouche/inset operations.

exception mappyng.errors.DataError[source]

Bases: MapError

Raised for input data issues (missing columns, invalid CRS, bad geometry).

exception mappyng.errors.LayoutError[source]

Bases: MapError

Raised for layout element errors (title, scale bar, legend, source).

mappyng.errors.handle_map_errors(func)[source]

Decorator that wraps map operations to provide consistent error context.

Return type:

TypeVar(F, bound= Callable[..., Any])