diff options
| author | Oz Linden <oz@lindenlab.com> | 2019-03-02 11:58:11 -0500 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2019-03-02 11:58:11 -0500 |
| commit | e409c0492f1b1ce63606c0b693c92cdb36dcc28b (patch) | |
| tree | 1b74701425dad859b4eb8e01593af79848dc323c /indra/llcommon/llerrorcontrol.h | |
| parent | fc90cad4f366c4bb85add832a2fa8137b1f120ff (diff) | |
convert to an explicit USE_BUGSPLAT switch in cmake, revise LL_ERRS approach
Diffstat (limited to 'indra/llcommon/llerrorcontrol.h')
| -rw-r--r-- | indra/llcommon/llerrorcontrol.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/indra/llcommon/llerrorcontrol.h b/indra/llcommon/llerrorcontrol.h index 7ca6ddb737..af46430f74 100644 --- a/indra/llcommon/llerrorcontrol.h +++ b/indra/llcommon/llerrorcontrol.h @@ -92,11 +92,19 @@ namespace LLError /* Control functions. */ + typedef boost::function<void(const std::string&)> FatalFunction; - LL_COMMON_API void overrideCrashOnError(const FatalFunction&); - LL_COMMON_API void restoreCrashOnError(); - + /// Override the default behavior of crashing on LL_ERRS; this should NEVER be used except in test code + LL_COMMON_API void overrideCrashOnError(const FatalFunction&); + // The fatal function will be called when an message of LEVEL_ERROR + // is logged. Note: supressing a LEVEL_ERROR message from being logged + // (by, for example, setting a class level to LEVEL_NONE), will keep + // the that message from causing the fatal funciton to be invoked. + + /// Undo the effect of the overrideCrashOnError above + LL_COMMON_API void restoreCrashOnError(); + LL_COMMON_API std::string getFatalMessage(); // Retrieve the message last passed to LL_ERRS, if any |
