I have just finished the implementation of exception handling.
This means that you can now throw and catch exceptions in your scripts.
I have uploaded a new build of the beta.
Documentation is not updated yet (nor is the sandbox), but exception handling uses the same syntax as in BlitzMax so hopefully this should be pretty straightforward to anyone.
The next step is to add support for "Finally" (as found in C#, Java, python ...), and to find the best way to convert some BriskVM runtime script errors (such as dividing by zero, currently reported to the host via an error code) into exceptions.
This means that you can now throw and catch exceptions in your scripts.
I have uploaded a new build of the beta.
Documentation is not updated yet (nor is the sandbox), but exception handling uses the same syntax as in BlitzMax so hopefully this should be pretty straightforward to anyone.
The next step is to add support for "Finally" (as found in C#, Java, python ...), and to find the best way to convert some BriskVM runtime script errors (such as dividing by zero, currently reported to the host via an error code) into exceptions.