From 889e2d6f0618ba47359bdeeff637c466683b8a6a Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 1 Oct 2010 12:27:08 +0100 Subject: [PATCH] Add another overload for sg_io_exception ctor. --- simgear/structure/exception.cxx | 8 ++++++++ simgear/structure/exception.hxx | 3 +++ 2 files changed, 11 insertions(+) diff --git a/simgear/structure/exception.cxx b/simgear/structure/exception.cxx index accd9706..0766eb45 100644 --- a/simgear/structure/exception.cxx +++ b/simgear/structure/exception.cxx @@ -260,6 +260,14 @@ sg_io_exception::sg_io_exception (const string& message, const string& origin) { } +sg_io_exception::sg_io_exception (const string& message, + const sg_location &location, + const string& origin) + : sg_exception(message, origin), + _location(location) +{ +} + sg_io_exception::~sg_io_exception () throw () { } diff --git a/simgear/structure/exception.hxx b/simgear/structure/exception.hxx index 3a8bcab7..bfa978ee 100644 --- a/simgear/structure/exception.hxx +++ b/simgear/structure/exception.hxx @@ -133,6 +133,9 @@ public: sg_io_exception (const char* message, const sg_location &location, const char* origin = 0); sg_io_exception (const std::string &message, const std::string &origin = ""); + sg_io_exception (const std::string &message, const sg_location &location, + const std::string &origin = ""); + virtual ~sg_io_exception () throw (); virtual const std::string getFormattedMessage () const; virtual const sg_location &getLocation () const; -- 2.39.5