alid.errornogc

Implements a mixin template that allows throwing Errors from @nogc code.

Members

Functions

assertErrorStringContains
void assertErrorStringContains(void delegate() expr, string[] expected)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin NogcError!"foo"
Undocumented in source.

Mixin templates

NogcError
mixintemplate NogcError(string tag, size_t maxDataSize = 1024)

Mixes in the definition of a subclass of Error as well as a convenience function (e.g. myError()) to throw the single thread-local instance of that class.

Meta