#include <iostream>
#include <exception>

struct ex
{
	ex()
	{
		throw std::runtime_error("Some error");
	}
};

struct dummy
{
	dummy()
	try : e(ex())
	{
		std::cout << "dummy ctor" << std::endl;
	}
	catch (std::runtime_error const& e)
	{
		std::cout << e.what() << std::endl;
	}

private:
	ex e;
};

int main()
{
	dummy d;

	return 0;
}