Exception Object


Class of objects used to store structured error information that may be captured and processed by an application or used to produce human-readable error messages. This class is useful to implement expection handling mechanisms.

Each instance may have various fields that describe an error in a structured way so it can be easily processed by an application without the need to parse textual information. Additionally, these instances may be converted or concatenated to string in order to produce textual descriptions of the errors.



Make object an instance of Exception. If the debug library of Lua is loaded when this class is first required then the stack traceback is captured when each Exception instance is created.


[1] [optional]
Name of the exception that is used when the textual message describing the exception is generated.


Concatenates the textual representation of the exception with a string.
Generates the textual representation of the exception as a string.



-- example missing

Copyright (C) 2004-2008 Tecgraf, PUC-Rio

This project is currently being maintained by Tecgraf at PUC-Rio.