diff options
author | Rider Linden <rider@lindenlab.com> | 2025-03-25 09:58:43 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2025-03-25 09:58:43 -0700 |
commit | b86c36eafcdb0fb42c1b68ef671050dea67dc6c3 (patch) | |
tree | dfa54e83a9ccac2c5346210c05626e61760e2822 /indra/llcommon/llerror.h | |
parent | 48ccb0f75b078670ced1f8fe8d4942abe0a6f293 (diff) | |
parent | 423df2ba4b731417796478c449e3e8f3d166ef21 (diff) |
Merge remote-tracking branch 'remotes/origin/develop' into rider/bot_tattle
Fix conflicts
Diffstat (limited to 'indra/llcommon/llerror.h')
-rw-r--r-- | indra/llcommon/llerror.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/llcommon/llerror.h b/indra/llcommon/llerror.h index 8a143ff30a..41893a35e5 100644 --- a/indra/llcommon/llerror.h +++ b/indra/llcommon/llerror.h @@ -308,7 +308,16 @@ namespace LLError class LLUserWarningMsg { public: - typedef std::function<void(const std::string&, const std::string&)> Handler; + // error codes, tranlates to last_exec states like LAST_EXEC_OTHER_CRASH + typedef enum + { + ERROR_OTHER = 0, + ERROR_BAD_ALLOC = 1, + ERROR_MISSING_FILES = 2, + } eLastExecEvent; + + // tittle, message and error code to include in error marker file + typedef std::function<void(const std::string&, const std::string&, S32 error_code)> Handler; static void setHandler(const Handler&); static void setOutOfMemoryStrings(const std::string& title, const std::string& message); @@ -316,7 +325,7 @@ namespace LLError static void showOutOfMemory(); static void showMissingFiles(); // Genering error - static void show(const std::string&); + static void show(const std::string&, S32 error_code = -1); private: // needs to be preallocated before viewer runs out of memory |