Exception Handling
Exception 및 내부 메시지를 확인하고 싶을 경우
TEST(Exception, HasCertainMessage )
{
// this tests _that_ the expected exception is thrown
EXPECT_THROW({
try
{
thisShallThrow();
}
catch( const MyException& e )
{
// and this tests that it has the correct message
EXPECT_STREQ( "Cucumber overflow", e.what() );
throw;
}
}, MyException );
}

![[C++] Vcpkg 이용하여 boost 라이브러리 설치하기](https://tech.sangron.com/wp-content/uploads/sites/2/2018/10/cpp_wallpaper-768x480.jpg)
![[Ubuntu] 14.04에서 gcc/g++ 4.9 설치하기](https://tech.sangron.com/wp-content/uploads/sites/2/2017/12/ubuntu_wallpaper_2-768x480.jpg)