- added support for throwing known errors and skipping stack traces (For friendlier error messages)

This commit is contained in:
Mark Vejvoda
2012-07-20 23:51:10 +00:00
parent ed9ae076c5
commit 0b9ad4c457
5 changed files with 57 additions and 8 deletions

View File

@@ -29,8 +29,12 @@ using std::exception;
namespace Shared { namespace Platform {
class megaglest_runtime_error : public runtime_error {
protected:
bool noStackTrace;
public:
megaglest_runtime_error(const string& __arg);
megaglest_runtime_error(const string& __arg,bool noStackTrace=false);
bool wantStackTrace() const { return noStackTrace; }
};
#ifndef WIN32