bigframes.exceptions.format_message#

bigframes.exceptions.format_message(message: str, fill: bool = True)[source]#

[Private] Formats a warning message.

Parameters:
  • message – The warning message string.

  • fill – Whether to wrap the message text using textwrap.fill. Defaults to True. Set to False to prevent wrapping, especially if the message already contains newlines.

Returns:

The formatted message string. If fill is True, the message will be wrapped to fit the terminal width.