Exceptions

pydetecdiv.exceptions

Custom exceptions to handle errors and enforce requirements

exception pydetecdiv.exceptions.MissingNameError(obj: NamedDSO)

Bases: Warning

Exception raised for missing name in data when creating a NamedDSO

exception pydetecdiv.exceptions.JuttingError(region: BoxedDSO, parent: BoxedDSO)

Bases: Warning

Exception raised when a portion of a region (ROI, FOV, image,…) protrudes out of its parent.

exception pydetecdiv.exceptions.OpenProjectError(msg: str)

Bases: Exception

Exception raised when a project cannot be opened

exception pydetecdiv.exceptions.ImportImagesError(msg: str)

Bases: Exception

Exception raised when images cannot be imported

exception pydetecdiv.exceptions.UnknownRepositoryTypeError(msg: str)

Bases: Exception

Exception raised when images cannot be imported