Changes in uspace/dist/src/sysel/demos/except.sy [c5cb943d:051b3db8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/sysel/demos/except.sy
rc5cb943d r051b3db8 29 29 class ExceptionDemo is 30 30 fun foo(), static is 31 Builtin.WriteLine("Entered foo().");31 Console.WriteLine("Entered foo()."); 32 32 raise new BaseException(); 33 33 end … … 38 38 foo(); 39 39 except e : DerivedException do 40 Builtin.WriteLine("Caught derived exception.");40 Console.WriteLine("Caught derived exception."); 41 41 except e : BaseException do 42 Builtin.WriteLine("Caught base exception.");42 Console.WriteLine("Caught base exception."); 43 43 finally do 44 Builtin.WriteLine("Finally.");44 Console.WriteLine("Finally."); 45 45 end 46 46 end
Note:
See TracChangeset
for help on using the changeset viewer.