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

Vararg variant of duk_error().

example: | void my_range_error(duk_context *ctx, const char *fmt, ...) { va_list ap; va_start(ap, fmt); duk_error_va(ctx, DUK_ERR_RANGE_ERROR, fmt, ap); va_end(ap); } tags: - error - vararg seealso: - duk_error - duk_throw - duk_push_error_object - duk_generic_error_va - duk_eval_error_va - duk_range_error_va - duk_reference_error_va - duk_syntax_error_va - duk_type_error_va - duk_uri_error_va introduced: 1.1.0