Lines Matching refs:try

94   try
124 try
948 try
956 try
964 try
972 try
1065 try
1095 try
1096 try
1135 try
1151 try
1160 try
1174 " Test 19: Aborting on errors inside :try/:endtry {{{1
1176 " An error in a command dynamically enclosed in a :try/:endtry region
1190 try
1211 try
1226 try
1242 try
1261 try
1282 try
1294 " Test 20: Aborting on errors after :try/:endtry {{{1
1296 " When an error occurs after the last active :try/:endtry region has
1297 " been left, termination behavior is as if no :try/:endtry has been
1307 try
1324 try
1343 try
1364 try
1387 try
1408 try
1431 try
1450 " Test 21: :finally for :try after :continue/:break/:return/:finish {{{1
1452 " If a :try conditional stays inactive due to a preceding :continue,
1464 try
1475 try " inactive
1486 try
1490 try " inactive
1501 try
1507 try " inactive
1524 " Test 22: :finally for a :try after an error/interrupt/:throw {{{1
1526 " If a :try conditional stays inactive due to a preceding error or
1533 try
1546 try " not active since :if inactive
1553 try " not active due to error
1568 try
1576 try
1585 try " not active since :if inactive
1592 try " not active due to interrupt
1616 try " not active since :if inactive
1623 try " not active due to :throw
1636 " Test 23: :catch clauses for a :try after a :throw {{{1
1638 " If a :try conditional stays inactive due to a preceding :throw,
1644 try
1650 try " not active since :if inactive
1664 try " not active due to :throw
1677 " Test 24: :endtry for a :try after a :throw {{{1
1679 " If a :try conditional stays inactive due to a preceding :throw,
1681 " active :try conditional.
1686 try " try 1
1687 try " try 2
1689 throw "xyz" " makes try 2 inactive
1692 try " try 3
1694 endtry " no rethrow to try 1
1695 catch /xyz/ " should catch although try 2 inactive
1698 catch /xyz/ " try 1 active, but exception already caught
1712 " For a :return command dynamically enclosed in a :try/:endtry region,
1717 try
1719 try
1734 try
1747 try
1761 try
1774 " For a :finish command dynamically enclosed in a :try/:endtry region,
1788 try
1805 " After an error in a command dynamically enclosed in a :try/:endtry
1814 try
1817 try
1838 try
1862 try
1874 try
1894 " a :try/:endtry region, :finally clauses are executed and the
1901 try
1911 try
1912 try
1914 try
1920 try
1922 try
1926 try
1940 try
1946 try
1972 " After a :throw dynamically enclosed in a :try/:endtry region,
1980 try
1990 try
1992 try
1998 try
2000 try
2004 try
2018 try
2024 try
2060 try
2096 try
2101 try
2134 try
2170 try
2175 try
2207 try
2239 try
2244 try
2279 try
2317 try
2323 try
2329 try
2362 try
2387 try
2392 try
2397 try
2402 try
2409 try
2414 try
2419 try
2456 try
2482 try
2483 try
2488 try
2493 try
2498 try
2505 try
2510 try
2515 try
2555 try
2580 try
2585 try
2590 try
2595 try
2602 try
2607 try
2612 try
2642 try
2654 try
2665 try
2678 try
2686 try
2696 try
2722 try
2730 try
2748 try
2796 try
2822 try
2844 try
2868 try
2869 try
2889 try
2908 try
2952 try
2962 try
2971 try
2998 try
3008 try
3017 try
3044 try
3054 try
3063 try
3135 try
3146 try
3157 try
3167 try
3177 try
3187 try
3197 try
3209 try
3253 try
3263 try
3272 try
3299 try
3309 try
3318 try
3333 " For nesting errors of :try conditionals the correct error messages
3343 " :endtry without :try
3348 call AssertException(['source Xtest'], 'Vim(endtry):E602: :endtry without :try')
3350 " :endtry without :try
3357 call AssertException(['source Xtest'], 'Vim(endtry):E602: :endtry without :try')
3359 " :endtry without :try
3366 call AssertException(['source Xtest'], 'Vim(endtry):E602: :endtry without :try')
3370 try
3379 try
3388 try
3398 try
3408 try
3419 try
3485 try
3520 try
3531 try
3550 try
3647 try
3683 try
3740 try
3750 try
3764 try
3766 try
3767 try
3789 try
3791 try
3792 try
3814 try
3816 try
3817 try
3840 try
3842 try
3855 try
3857 try
3874 try
3876 try
3877 try
3899 try
3901 try
3902 try
3924 try
3926 try
3927 try
3952 try
3954 try
3955 try
3995 try
3996 try
4015 try
4017 try
4043 try
4045 try
4073 try
4075 try
4102 " When an interrupt occurs inside a :try/:endtry region, an
4106 " that try block are ignored, but the interrupt exception can be
4107 " caught by the next surrounding try conditional. An interrupt is
4115 try
4116 try
4134 try
4135 try
4136 try
4167 try
4168 try
4169 try
4196 try
4197 try
4228 " An error inside a :try/:endtry region is converted to an exception
4237 try
4238 try
4264 try
4265 try
4291 try
4292 try
4324 try
4325 try
4357 try
4358 try
4389 try
4392 try
4424 try
4427 try
4456 " A :silent! command inside a :try/:endtry region suppresses the
4459 " a new :try/:endtry region, conversion of errors to exception and
4466 " inside a :try/:endtry, the autocommand execution is not suppressed
4492 try
4493 try
4507 " Break out of try conditionals that cover ":silent!". This also
4520 try
4524 endtry " normal end of try cond that covers ":silent!"
4559 " a matching :catch is reached, all following :catches of that try
4561 " surrounding try conditional. Any previous error exception is
4569 try
4570 try
4598 try
4599 try
4602 try
4631 try
4632 try
4634 try
4667 try
4668 try
4670 try
4703 try
4704 try
4736 " not match. Any following :catches of the same :try/:endtry don't
4744 try
4745 try
4761 try
4762 try
4763 try
4802 " dynamically enclosed by :try/:endtry or gets an interrupt or
4805 " by :try/:endtry, the function is executed again for the remaining
4831 try
4847 try
4849 try
4854 try
4859 try
4938 try
4942 try
4958 try
4974 try
4992 try
5045 try
5050 try
5067 try
5084 try
5103 try
5135 " due to an error inside a :try/:endtry region or due to an interrupt
5138 " error not inside :try/:endtry, the expression evaluation continues.
5186 try
5190 try
5229 try
5233 try
5268 try
5272 try
5374 " to an error inside a :try/:endtry region or due to an interrupt or
5377 " ":endfunction". On an error not inside :try/:endtry, the expression
5418 try
5420 try
5432 try
5486 try
5491 try
5544 try
5547 try
5637 try
5639 try
5655 try
5682 try
5751 try
5752 try
5774 try
5775 try
5797 try
5798 try
5817 try
5818 try
5848 " When an exception is thrown from inside a :try conditional without
5855 try
5857 try
5881 try
5883 try
5897 try
5923 try
5924 try
5951 try
5952 try
5983 try
5984 try
6002 try
6021 try
6022 try
6039 try
6058 " the :finally of the innermost :try is reached, the exception is
6064 try
6066 try
6092 try
6094 try
6110 try
6181 try
6182 try
6190 try
6202 try
6219 try
6227 try
6241 try
6267 " When an I/O command is inside :try/:endtry, autocommands to be
6282 try
6311 try
6312 try
6336 try
6337 try
6371 try
6372 try
6397 try
6402 try
6404 try
6598 try
6832 try
6841 try
6852 try
6861 try
6872 try
6881 try
7243 call writefile(['try', 'echo "."'], 'Xscript')
7249 try
7259 try
7277 " Test for deep nesting of if/for/while/try statements {{{1
7309 " Deep nesting of try ... endtry
7311 let @a = join(repeat(['try'], 51), "\n")
7346 " Deep nesting of try ... endtry
7386 try
7397 try
7408 try
7479 try
7486 try
7493 try