docstr: If client.showErrorDetails is false, uncaught app errors are logged,
  and a generic error message is printed to the frontend.
docstr_tok: ["If","client.showErrorDetails","is","false",",","uncaught","app","errors","are","logged",",","and","a","generic","error","message","is","printed","to","the","frontend","."]
code: def test_uncaught_exception_no_details(
      self, mock_st_error, mock_st_exception
  ):
      """If client.showErrorDetails is false, uncaught app errors are logged,
      and a generic error message is printed to the frontend."""
      with testutil.patch_config_options(
          {"client.showErrorDetails": False}
      ):
          exc = RuntimeError("boom!")
          handle_uncaught_app_exception(exc)
  
          mock_st_error.assert_not_called()
          mock_st_exception.assert_called_once()
  
file_path: streamlit/lib/tests/streamlit/error_util_test.py
imports: import contextlib
  import io
  import unittest
  from unittest.mock import patch
  from streamlit.error_util import _print_rich_exception, handle_uncaught_app_exception
  from tests import testutil
label_desc: Use image node_id 2 for calling the ErrorUtilTest obj's underlying member method code with example usage: obj.test_uncaught_exception_no_details(mock_st_error, mock_st_exception) without return types