mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- added support for throwing known errors and skipping stack traces (For friendlier error messages)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user