mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 04:43:58 +02:00
- added support for throwing known errors and skipping stack traces (For friendlier error messages)
This commit is contained in:
@@ -256,8 +256,8 @@ string PlatformExceptionHandler::getStackTrace() {
|
||||
return errMsg;
|
||||
}
|
||||
|
||||
megaglest_runtime_error::megaglest_runtime_error(const string& __arg)
|
||||
: std::runtime_error(__arg + PlatformExceptionHandler::getStackTrace()) {
|
||||
megaglest_runtime_error::megaglest_runtime_error(const string& __arg,bool noStackTrace)
|
||||
: std::runtime_error(noStackTrace ? __arg + PlatformExceptionHandler::getStackTrace() : __arg), noStackTrace(noStackTrace) {
|
||||
}
|
||||
|
||||
}}//end namespace
|
||||
|
@@ -265,8 +265,8 @@ string PlatformExceptionHandler::getStackTrace() {
|
||||
return result;
|
||||
}
|
||||
|
||||
megaglest_runtime_error::megaglest_runtime_error(const string& __arg)
|
||||
: std::runtime_error(__arg + PlatformExceptionHandler::getStackTrace()) {
|
||||
megaglest_runtime_error::megaglest_runtime_error(const string& __arg,bool noStackTrace)
|
||||
: std::runtime_error(noStackTrace ? __arg + PlatformExceptionHandler::getStackTrace() : __arg), noStackTrace(noStackTrace) {
|
||||
}
|
||||
|
||||
// =====================================================
|
||||
|
Reference in New Issue
Block a user