numem.core.exception

Essential tools for nothrow.

Members

Classes

NuException
class NuException

An exception which can be thrown from numem

Functions

assumeNoGC
auto assumeNoGC(T expr, Args args)

Assumes that the provided function does not use the D garbage collector.

assumeNoThrow
auto assumeNoThrow(T expr, Args args)

Assumes that a given function or delegate does not throw.

assumeNoThrowNoGC
auto assumeNoThrowNoGC(T expr, Args args)

Assumes that a given function or delegate does not throw.

assumeNoThrowNoGCPure
auto assumeNoThrowNoGCPure(T expr, Args args)

Assumes that the provided function is @nogc, nothrow and pure.

assumePure
auto assumePure(T expr, Args args)

Assumes that the provided function is pure.

enforce
void enforce(T in_, const(char)[] err)

Enforces the truthiness of in_

enforce
void enforce(T in_, NuException t)

Enforces the truthiness of in_

Meta

Authors

Luna Nielsen