exception_handler#

Error handling and error reporting.

Classes#

Functions#

conda_exception_handler(→ T | int)

Attributes#

T

T#
class ExceptionHandler#
property http_timeout#
property user_agent#
property error_upload_url#
__call__(func: Callable[Ellipsis, T], *args, **kwargs) T | int#
write_out(*content: str) None#
handle_exception(exc_val: BaseException, exc_tb: types.TracebackType) int#
handle_application_exception(exc_val: BaseException, exc_tb: types.TracebackType) int#
_print_conda_exception(exc_val: BaseException, exc_tb: types.TracebackType) None#
handle_unexpected_exception(exc_val: BaseException, exc_tb: types.TracebackType) int#
handle_reportable_application_exception(exc_val: BaseException, exc_tb: types.TracebackType) int#
get_error_report(exc_val: BaseException, exc_tb: types.TracebackType) dict[str, str]#
print_unexpected_error_report(error_report: dict[str, str]) None#
print_expected_error_report(error_report: dict[str, str]) None#
_isatty() bool#
_upload(error_report: dict[str, str]) None#

Determine whether or not to upload the error report.

_ask_upload() bool#
_execute_upload(error_report: dict[str, Any]) None#
_post_upload(do_upload: bool) None#
conda_exception_handler(func: Callable[Ellipsis, T], *args, **kwargs) T | int#