#include "exception.hxx"
+
#include <stdio.h>
#include <cstring>
#include <sstream>
+#include <simgear/misc/sg_path.hxx>
+
using std::string;
\f
////////////////////////////////////////////////////////////////////////
_path[0] = '\0';
}
-sg_location::sg_location (const string& path, int line, int column)
+sg_location::sg_location (const std::string& path, int line, int column)
: _line(line),
_column(column),
_byte(-1)
_byte = byte;
}
-string
+std::string
sg_location::asString () const
{
std::ostringstream out;
{
}
+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 (const string &message, const SGPath& origin)
+ : sg_exception(message, origin.str())
+{
+
+}
+
sg_io_exception::~sg_io_exception () throw ()
{
}