ExcBuf

Static buffer for storing no GC exceptions

Members

Functions

construct
T construct(string file, size_t line, bool setTraceback, A args)

Construct a throwable in place

constructFmt
T constructFmt(string file, size_t line, string fmt, A args)
T constructFmt(string file, size_t line, A args)

Construct a Throwable, formatting the message

get
Throwable get()

Get the Throwable stored in the buffer

set
Throwable set(Throwable t, bool setTraceback)

Set the exception that buffer is to hold.

setMsg
void setMsg(const(char)[] msg2, Throwable tobj)
Undocumented in source. Be warned that the author may not have intended to support it.
setTraceback
void setTraceback(Throwable tobj)

set a Throwable's backtrace to the current point.

Manifest constants

MAX_EXCEPTION_INSTANCE_SIZE
enum MAX_EXCEPTION_INSTANCE_SIZE;
Undocumented in source.
MAX_EXCEPTION_MESSAGE_SIZE
enum MAX_EXCEPTION_MESSAGE_SIZE;
Undocumented in source.
MAX_TRACEBACK_SIZE
enum MAX_TRACEBACK_SIZE;
Undocumented in source.

Static functions

isGCException
bool isGCException(Throwable ex)
Undocumented in source. Be warned that the author may not have intended to support it.
toGC
Throwable toGC(Throwable ex, bool forceCopy)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

ex
ubyte[MAX_EXCEPTION_INSTANCE_SIZE] ex;
Undocumented in source.
msgBuf
char[MAX_EXCEPTION_MESSAGE_SIZE] msgBuf;
Undocumented in source.
ti
ubyte[MAX_TRACEBACK_SIZE] ti;
Undocumented in source.

Meta