Skip to contents

Captures detailed information about an error condition, including class, message, call, and a trimmed traceback.

Usage

capture_error_info(e)

Arguments

e

A condition object (typically from tryCatch)

Value

A named list with elements:

  • error_class - The class of the error

  • error_message - The error message

  • call - The call that caused the error (if available)

  • traceback - Trimmed traceback (limited to 20 frames)