Finally trying hard to catch exceptions
Prexonite now comes with exception handling in the form of try-catch-finally blocks. Their implementation is a bit different from the ones in C#.
Prexonite Script:
- Add System::IO to Imports;
- function main
- {
- try
- {
- sw.WriteLine("It worked!");
- }
- catch(var exc)
- {
- println(exc);
- }
- finally
- {
- dispose(sw);
- }
- }
More »