Added CHECK_NO_THROW macro

Added CHECK_NO_THROW macro to check that an expression does not throw an
exception.