exceptionhandling

Undocumented in source.

Members

Functions

assertEqual
T assertEqual(T toTest, T toCompareAgainst, string file, int line)
assertNotEqual
T assertNotEqual(T toTest, T toCompareAgainst, string file, int line)

Assert that toTest is equal to toCompareAgainst. If T is a floating point approxEqual is used to compare the values. toTest is returned if the comparision is correct. If the comparision is incorrect an Exception is thrown. If assertEqual is used in a unittest block an AssertError is thrown an Exception otherwise.

chain
auto chain(F exp, Args args)

Calls exp if exp does not throw the return value from exp is returned, if exp throws the Exception is cought, a new Exception is constructed with a message made of args space seperated and the previously cought exception is nested in the newly created exception.

expect
auto expect(F exp, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta