Skip to content

StandardException what() returns 'Unknown exception' #208

@amiart

Description

@amiart

The StandardException, SqlException etc. classes inherit from std::exception, but don't return correct exception message when using what().

try
{
    throw StandardException("Something wrong happened");
}
catch (std::exception &e)
{
    qDebug(e.what());   // prints 'Unknown exception'
}

Config:
TreeFrog 1.21.0
Windows 10
Qt 5.9.4, MSVC 2015 x86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions