Skip to content

module exceptions


function print_fatal_error

print_fatal_error(msg: str | Text | None, e: Exception | None = None) → None

Print a fatal error message

Args:

  • msg (str): The error message to display.
  • e (Exception | None): The exception that caused the error, if any.

function print_fatal_error_and_exit

print_fatal_error_and_exit(
    msg: str,
    e: Exception | None = None,
    exit_code: int = 1
) → None

Print an error message and exit with code 'exit_code'.


This file was automatically generated via lazydocs.