lua-error is a module which handles raising and capturing custom errors via
try/catch/finally syntax. It is somewhat modeled after the Python implementation.
The unit tests in
lua-error give an indication of how to use the library. There are also examples of usage throughout the
Overview of lua-error