Project

General

Profile

postresql error code always empty

Added by Stefan Hainzl over 8 years ago

Hello,

The following code may fail, but then the exception is always empty - is this normal on 3.3.1?

try

    {
        session->createTables();
    }
    catch (dbo::Exception const& err)
    {
        std::cerr << "ERROR: " << err.code() << std::endl;
    }

Thanks a lot & Best regards,

Stefan