Magik Error Handling

Capturing Error but Continue Execution

There are times that you need to capture an error to display the problem, but you need to continue the thread's execution. You can do this with a catch statement. Below is an example of capturing an error, reporting the error, report the traceback, and continuing the code execution.

example 1

example 2

Capturing Warning but Continue Execution

There are times that you need to want to capture or ignore warnings. You can use a _try statement but it may not actually complete the call. You can handle it with an empty proc.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License