    #include <iostream>
    #include <memory>
    
    class LoggingLibrary
    {
    	public:
    		LoggingLibrary(int trigger=0) // for demonstration purposes
            { 
               if ( trigger > 0)
                   throw "Error"; 
            }
    };
    
    using namespace std;
    
    int main() 
    {
    	unique_ptr<LoggingLibrary> logLib;
    	try 
    	{
    		logLib = make_unique<LoggingLibrary>(1);
    	}
    	catch(const char *msg)
    	{
    		cout << "Didn't initialize";
    	}
   	    if ( logLib )
    	{
            cout << "Hey I'm ok"; // no exception thrown
     	}
    }

