Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,31 @@
function exceptionsCatchNestedCall()
function foo()
try
bar(1);
bar(2);
catch
disp(lasterror);
rethrow(lasterror);
end
end
function bar(i)
baz(i);
end
function baz(i)
switch i
case 1
error('BAZ:U0','HAHAHAH');
case 2
error('BAZ:U1','AWWWW');
otherwise
disp 'I can''t do that Dave.';
end
end
foo();
end

View file

@ -0,0 +1,10 @@
>> exceptionsCatchNestedCall()
message: [1x177 char]
identifier: 'BAZ:U0'
stack: [4x1 struct]
??? Error using ==> exceptionsCatchNestedCall>baz at 21
HAHAHAH
Error in ==> exceptionsCatchNestedCall at 29
foo();