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.

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()