Skip to content

Exceptions

Typed exception hierarchy for MGT-python.

All library-specific errors inherit from :class:MgError so that callers can catch any toolbox error with a single except MgError.

MgError

Bases: Exception

Base class for all MGT-python exceptions.

MgInputError

Bases: MgError

Raised when a user-supplied argument is invalid.

MgProcessingError

Bases: MgError

Raised when a processing step fails unexpectedly.

MgIOError

Bases: MgError

Raised for file I/O failures (missing files, permission errors, etc.).

MgDependencyError

Bases: MgError

Raised when an optional dependency is not installed.