Skip to main content

verifyMarkersReferenceArg.m


% This function throws an error if the input value is not an argument to
% instantiate a MarkersReference. It essentially tests if a
% This function is part of the NMSM Pipeline, see file for full license.
%
% MarkersReference can be made in a secure environment and allows for
% catching the error and handling it appropriately.
%
% This function can be used as a simple line in a function or contained
% within a try-catch to allow for a custom message/response.
%
% (Any) -> (None)
% Throws an exception if the input cannot make a MarkersReference


function verifyMarkersReferenceArg(input)
try
MarkersReference(input);
catch
throw(MException('', 'input is not valid to make a MarkersReference'));
end
end