name: duk_generic_error_va proto: | duk_ret_t duk_generic_error_va(duk_context *ctx, const char *fmt, va_list ap); stack: | [ ... ] -> [ ... err! ] summary: |

Convenience API call, equivalent to duk_error_va() with an error code DUK_ERR_ERROR.

example: | void my_generic_error(duk_context *ctx, const char *fmt, ...) { va_list ap; va_start(ap, fmt); duk_generic_error_va(ctx, fmt, ap); va_end(ap); } tags: - error - vararg seealso: - duk_error_va introduced: 2.0.0