Skip to content

Commit

Permalink
Throw log4cplus::exception from syncprims_throw_exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilx committed Dec 23, 2023
1 parent 0e105f8 commit 3b98565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/syncprims.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <sstream>
#include <stdexcept>
#define LOG4CPLUS_ENABLE_SYNCPRIMS_PUB_IMPL
#include <log4cplus/thread/syncprims-pub-impl.h>
#include <log4cplus/exception.h>


namespace log4cplus::thread::impl
Expand All @@ -38,7 +38,7 @@ syncprims_throw_exception (char const * const msg, char const * const file,
{
std::ostringstream oss;
oss << file << ":" << line << ": " << msg;
throw std::runtime_error (oss.str ());
throw log4cplus::exception (oss.str ());
}


Expand Down

0 comments on commit 3b98565

Please sign in to comment.