code: public static void frameError(String error) {
          TracyThreadContext ctx = threadContext.get();
          if (isValidContext(ctx)) {
              ctx.popFrameWithError(error);
          }
      }
docs: In case where an exception is thrown Tracy.frameError(errorString) can be used to
  close Tracy stack frame with a user error message while still flow to continue.<br>
  This can be useful when in a retry exception where the task may be recoverable.<br>
  If the current frame is not the only Tracy stack frame the next frame will resume normally.
  In case the user wants to raise an error all the way up to the inner Tracy stack frame,
  then outerError(errorString) should be used instead