Intercepting runtime errors
BlitzMax Forums/BlitzMax Programming/Intercepting runtime errors
| ||
Is there a way to add information to a runtime error? I am using a Lua interpreter written in BMX, and it would be nice if I could add the last executed line and the script name to the error message. |
| ||
Are you throwing the error yourself? check the bmax sources if its trappable. use lots of assertions. |
| ||
Is there a way to add information to a runtime error? You could try catching the error and throw it again with new information. |
| ||
Don't throw a String, throw an exception object... |