olua.lib
Class Exception

olua.lib.Object
└─ olua.lib.Exception

I am the base class for all exceptions. I am an abstract class; instances of olua.lib.Exception should never be thrown.

Subclasses should override olua.lib.Object>>-toString and return a sensible message.


Constructor Summary
- init
Initialises a new instance of the exception.
Method Summary
- throw
Throws this exception.
- traceback
Returns the exception's traceback.
Method Detail

- init

Initialises a new instance of the exception.

The exception will attempt to capture the stack here, if possible; see -traceback.

Returns:
the receiver

- throw

Throws this exception.

Equivalent to @throw self.

- traceback

Returns the exception's traceback.

The traceback is as returned by the standard Lua function debug.traceback(). It is normally captured when the exception is initialised.

Returns:
the traceback, or nil