How can I trap a specific error message from a common event?
As a simple example, assume you’re using the builtin street grammar and the caller requests a street in a city that isn’t included in that grammar. In this situation, the interpreter throws an error.badfetch event. You can include a catch handler for error.badfetch, using the _message variable to discover specifics of the thrown event. In our example, the message would include the words “No Street Grammar”.
Related Questions
- Im getting an error message, says something like: "Divide by 0 error", or "Insufficient Memory", or my level, frame, or event editor wont load or work. I have lots of memory, whats wrong?
- Email ยป Common Questions: Why do I get a 550 Relay Not Permitted error message when sending mail?
- How can I trap a specific error message from a common event?