Exceptions#

Custom exception hierarchy rooted at ThesisError.

Custom exceptions for the thesis framework.

This module defines exception classes for different types of errors that can occur during pipeline processing.

exception thesis.core.exceptions.ThesisError[source]#

Bases: Exception

Base exception for all thesis framework errors.

exception thesis.core.exceptions.ConfigurationError[source]#

Bases: ThesisError

Raised when configuration is invalid or missing.

Examples

  • Missing required configuration file

  • Invalid configuration values

  • Configuration validation failure

exception thesis.core.exceptions.ProcessingError[source]#

Bases: ThesisError

Raised when processing operation fails.

Examples

  • Algorithm failure

  • Computation error

  • Unexpected processing result

exception thesis.core.exceptions.ValidationError[source]#

Bases: ThesisError

Raised when input validation fails.

Examples

  • Invalid image dimensions

  • Missing required files

  • Invalid parameter values

exception thesis.core.exceptions.RegistrationError[source]#

Bases: ProcessingError

Raised when image registration fails.

exception thesis.core.exceptions.SegmentationError[source]#

Bases: ProcessingError

Raised when image segmentation fails.

exception thesis.core.exceptions.TractographyError[source]#

Bases: ProcessingError

Raised when tractography processing fails.

exception thesis.core.exceptions.PipelineError[source]#

Bases: ProcessingError

Raised when a pipeline step produces an invalid or unrecoverable result.

Examples

  • Warped ROI mask is entirely empty

  • Pipeline invariant violated during execution

exception thesis.core.exceptions.FileIOError[source]#

Bases: ThesisError

Raised when I/O operation fails.

Examples

  • Unable to read file

  • Unable to write file

  • Corrupted data

exception thesis.core.exceptions.DependencyError[source]#

Bases: ThesisError

Raised when external dependency is missing or incompatible.

Examples

  • FSL not installed

  • ANTs not found

  • Incompatible library version