createError: Create and throw errors
Description
These functions are convenience functions for creating and throwing errors.
Usage
createError(formats, code = NULL, ...)reject(formats, code = NULL, ...)
Arguments
formats
a format string which is passed to format
...
additional arguments passed to format