Add another overload for sg_io_exception ctor.

This commit is contained in:
James Turner 2010-10-01 12:27:08 +01:00
parent 9a28642a4e
commit 889e2d6f06
2 changed files with 11 additions and 0 deletions

View File

@ -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 ()
{
}

View File

@ -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;