handle_error: Handle errors with custom messages

View source: R/utils.R View source: R/project.R View source: R/annotate_gui.R

handle_errorR Documentation

Handle errors with custom messages

Description

Provides error handling with customizable success, error, and completion messages. Wraps expressions in a tryCatch block and displays appropriate notifications.

Provides error handling with customizable success, error, and completion messages. Wraps expressions in a tryCatch block and displays appropriate notifications.

Provides error handling with customizable success, error, and completion messages. Wraps expressions in a tryCatch block and displays appropriate notifications.

Usage

handle_error(expr, success_msg = NULL, error_msg = NULL, finally_msg = NULL)

handle_error(expr, success_msg = NULL, error_msg = NULL, finally_msg = NULL)

handle_error(expr, success_msg = NULL, error_msg = NULL, finally_msg = NULL)

Arguments

expr

Expression to evaluate

success_msg

Optional character string for success notification

error_msg

Optional character string for error notification

finally_msg

Optional character string for completion notification

Value

Result of the expression or NULL if error occurs

Result of the expression or NULL if error occurs

Result of the expression or NULL if error occurs


textAnnotatoR documentation built on April 3, 2025, 7:35 p.m.