|
kaycxx-assert
C++ assertion library
|
Asserts that a function does not throw, or does not throw a specific exception/message combination.
The one-argument form fails on any thrown exception. The typed forms only fail when the thrown exception type and message match the unexpected condition; other exceptions are intentionally allowed by those overloads.
Use the typed overloads when one specific error must not happen, but unrelated errors are not part of this assertion.