From 43ac32bd77e325f067a21a0d302abe21c555c89f Mon Sep 17 00:00:00 2001 From: Tom Teasdale Date: Sun, 9 Oct 2022 14:29:57 +0200 Subject: [PATCH] small addition to exception to enhance error handling in GUI --- src/+exceptions/NoMeasurementForFitMode.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/+exceptions/NoMeasurementForFitMode.m b/src/+exceptions/NoMeasurementForFitMode.m index 4458795..d1babdc 100644 --- a/src/+exceptions/NoMeasurementForFitMode.m +++ b/src/+exceptions/NoMeasurementForFitMode.m @@ -1,4 +1,7 @@ classdef NoMeasurementForFitMode < MException + properties (SetAccess = protected) + FitMode magicformula.v62.FitMode + end methods function obj = NoMeasurementForFitMode(fitmode) arguments @@ -8,6 +11,7 @@ msgtext = sprintf(... 'Measurement has no data for fit-mode "%s".', fitmode); obj@MException(errId, msgtext) + obj.FitMode = fitmode; end end end