Skip to content

exceptions

Custom exceptions for the rastr package.

NonSquareCellsError

Bases: ValueError, RastrError

Raised when square cells are required but the raster has non-square cells.

Source code in src/rastr/exceptions.py
8
9
class NonSquareCellsError(ValueError, RastrError):
    """Raised when square cells are required but the raster has non-square cells."""

RastrError

Bases: Exception

Base exception for the rastr package.

Source code in src/rastr/exceptions.py
4
5
class RastrError(Exception):
    """Base exception for the rastr package."""