Skip to content

Commit 52227af

Browse files
committed
Reenable the error to exception mapping.
1 parent c3812c3 commit 52227af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

+DSS_MATLAB/Base.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
methods
2323

2424
function obj = CheckForError(obj)
25-
% error = calllib('dss_capi_v7', 'Error_Get_Number');
26-
% if error ~= 0
27-
% ME = MException(['DSS_MATLAB:Error' int2str(error)], calllib('dss_capi_v7', 'Error_Get_Description'));
28-
% throw(ME);
29-
% end
25+
error = calllib('dss_capi_v7', 'Error_Get_Number');
26+
if error ~= 0
27+
ME = MException(['DSS_MATLAB:Error' int2str(error)], calllib('dss_capi_v7', 'Error_Get_Description'));
28+
throw(ME);
29+
end
3030
end
3131
end
3232
end

0 commit comments

Comments
 (0)