Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-33

log4cxx::Exception is not derived from std::exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.7
    • 0.10.0
    • None
    • None

    Description

      Raised by Tommi Mäkitalo in http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx-dev@logging.apache.org&msgNo=313 with follow up discussion in thread.

      Boost guidelines on exceptions: http://www.boost.org/more/error_handling.html

      I've reworked the exceptions so they derive from std::exception and getMessage() just repackages the value returned by std::exception::what. Added new exceptions classes that override std::exception::what() for exceptions with fixed messages. Exceptions with variable messages were either simplified to return static messages or had getMessage overriden to generate equivalent message on request. PlatformSocketException and MissingBraceException are instances of that latter. Also changed use of non-threadsafe stderror to strerror_r in SocketException.

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            carnold@apache.org Curt Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: