Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    1ed76c38
    MAINT-5011: Add llexception_test.cpp with tests (and conclusions). · 1ed76c38
    Nat Goodspeed authored
    llexception_test.cpp is an unusual test source in that it need not be verified
    on every build, so its invocation in indra/llcommon/CMakeLists.txt is
    commented out with that remark. Its purpose is to help a developer decide what
    base class(es) to use for LLException, how to throw and how to catch.
    
    Our current conclusions are written up as comments in llexception_test.cpp.
    
    Added CRASH_ON_UNHANDLED_EXCEPTION() and LOG_UNHANDLED_EXCEPTION() macros to
    llexception.h -- macros to log __FILE__, __LINE__ and __PRETTY_FUNCTION__ of
    the catch site. These invoke functions in llexception.cpp so we don't need to
    #include llerror.h for every possible catch site.
    1ed76c38
    History
    MAINT-5011: Add llexception_test.cpp with tests (and conclusions).
    Nat Goodspeed authored
    llexception_test.cpp is an unusual test source in that it need not be verified
    on every build, so its invocation in indra/llcommon/CMakeLists.txt is
    commented out with that remark. Its purpose is to help a developer decide what
    base class(es) to use for LLException, how to throw and how to catch.
    
    Our current conclusions are written up as comments in llexception_test.cpp.
    
    Added CRASH_ON_UNHANDLED_EXCEPTION() and LOG_UNHANDLED_EXCEPTION() macros to
    llexception.h -- macros to log __FILE__, __LINE__ and __PRETTY_FUNCTION__ of
    the catch site. These invoke functions in llexception.cpp so we don't need to
    #include llerror.h for every possible catch site.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.