FittingError

sealed class FittingError(source)

Structured failure cause carried by a terminal failed FitResult.

The current taxonomy is intentionally narrow: a pre-flight configuration problem, a data-import problem, or anything else thrown by the fitting runner. Later phases will widen this hierarchy as concrete failure categories warrant distinct front-end treatment (per-estimator failures, database-specific errors, etc.).

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class ConfigurationError(val message: String, val validationResult: ValidationResult) : FittingError

Pre-flight validation rejected the submitted spec. The carried validationResult lists each offending field so a front-end can highlight inputs directly.

Link copied to clipboard
data class ImportError(val message: String, val cause: Throwable?) : FittingError

Data import failed: file not found, layout mismatch, non-numeric values, empty group, and so on. The cause is typically the underlying ImportException.

Link copied to clipboard
data class RuntimeError(val message: String, val cause: Throwable?) : FittingError

Anything else thrown while running the fit: PDFModeler numeric failure, a not-yet-supported feature guard, an unexpected JVM exception. The cause carries the original throwable.

Properties

Link copied to clipboard
abstract val cause: Throwable?

Underlying exception when one exists; null for pure-data errors.

Link copied to clipboard
abstract val message: String

Short, user-facing message.