parent_function_error: Parent error function constructor

View source: R/gtfsio_error.R

parent_function_errorR Documentation

Parent error function constructor

Description

Creates a function that raises an error that is assigned to the function in which the error was originally seen. Useful to prevent big repetitive gtfsio_error() calls in the "main" functions.

Usage

parent_function_error(message, subclass = character(0))

Arguments

message

The message to inform about the error.

subclass

The subclass of the error.

See Also

Other error constructors: gtfsio_error()


gtfsio documentation built on Oct. 20, 2023, 9:08 a.m.