Skip to content

Commit

Permalink
small addition to exception to enhance error handling in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
teasit committed Oct 9, 2022
1 parent 89fdf10 commit 43ac32b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/+exceptions/NoMeasurementForFitMode.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
classdef NoMeasurementForFitMode < MException
properties (SetAccess = protected)
FitMode magicformula.v62.FitMode
end
methods
function obj = NoMeasurementForFitMode(fitmode)
arguments
Expand All @@ -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
Expand Down

0 comments on commit 43ac32b

Please sign in to comment.