composerr_get_action: Retrieve the default ultimate error handler of a composerr...

View source: R/composerr.R

composerr_get_actionR Documentation

Retrieve the default ultimate error handler of a composerr error handler

Description

Retrieve the default ultimate error handler of a composerr error handler

Usage

composerr_get_action(err_h)

Arguments

err_h

An error handler created with composerr().

Value

The default ultimate error processing function action assigned to err_h <- composerr(..., action = my_default_action). If err_h is a child error handler of err_h_parent has been created without assigning a default ultimate error handler action, then the default ultimate error handler assigned to err_h_parent is returned by the call composerr_get_action(err_h). If err_h_parent also has no default ultimate error handler assigned to it, then this process is repeated recursively until the first ancestor of err_h is found that has a non-null default ultimate error handler action assigned to. If no default ultimate error handler was assigned for any error handler in the entire error handler cascade, then stop() will be the return value of composerr_get_action(err_h).

See Also

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


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