From: James Turner Date: Fri, 1 Oct 2010 11:27:08 +0000 (+0100) Subject: Add another overload for sg_io_exception ctor. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=889e2d6f0618ba47359bdeeff637c466683b8a6a;p=simgear.git Add another overload for sg_io_exception ctor. --- 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;