Skip to contents

This function throws a validation error with the provided message and data.

Usage

stop_validation_error(message, data, call = rlang::caller_env())

Arguments

message

The error message. This should be a character string.

data

Additional data associated with the error.

Value

Never returns, because it signals an error.

Examples

if (FALSE) { # \dontrun{
stop_formatting_error("This is a validation error!", data.frame(x = 1:5))
} # }