added error code to non-runtime exceptions
doc: added proper documentation to lua exception facilities