Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue