validate_composerr: Validate an error handler

View source: R/composerr.R

validate_composerrR Documentation

Validate an error handler

Description

Check that obj is really an error handler created with composerr().

Usage

validate_composerr(obj, err_h, allow_null = TRUE, obj_name = NULL)

Arguments

obj

An error handling function created by composerr().

err_h

An error handler called when obj is not a valid error handling function created by composerr().

allow_null

A logical flag, defining if obj = NULL should be allowed.

obj_name

An optional string, defining the variable name of obj. This string is used for creating a meaningful error message, in case the validation failed. If obj_name is omitted, then obj_name is calculated by using non-standard-evaluation on obj.

See Also

composerr(), composerr_flush(), composerr_halt(), composerr_get_action() and validate_composerr()


a-maldet/composerr documentation built on Oct. 29, 2022, 8:05 p.m.