getFailStr: Get Failure Message as a character

View source: R/validation.R

getFailStrR Documentation

Get Failure Message as a character

Description

[Experimental]

This function generates a failure message string from a given condition. The message includes the context of the call and the specific condition message.

Usage

getFailStr(cond)

Arguments

cond

A condition object representing an error or warning - probably from a tryCatch() statement.

Value

A character string containing the failure message.

Examples

tryCatch(stop("Example error"), error = function(e) getFailStr(e))

FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.