DefaultLogger::setLogFilename throws char*

Create issue
Issue #443 resolved
Former user created an issue

Automatic migration. Original reporter: "1337"

Referring to the trunk (r2560) with an issue introduced 01/26/2006 (adding of DefaultLogger.cpp):

The setLogFilename method of the DefaultLogger throws a C string instead of an exception object on line 150: CEGUI_THROW("Logger::setLogFilename - Failed to open file.");

This seems to be the only occurrence of this kind, so I have to assume that the behaviour is unwanted, considering that every other CEGUI exception can be caught as std::exception.

In our project, I have resolved it by also handling "const char*".

Reproducibility: always

Comments (1)

  1. Martin Preisler

    Good find, thanks a bunch!

    Fixed in b970bb53e0e1 mercurial. Will go into 0.8 since it's a change of behavior, other people may already be catching const char*.

  2. Log in to comment