mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
450 B
23 lines
450 B
name: duk_reference_error
|
|
|
|
proto: |
|
|
duk_ret_t duk_reference_error(duk_context *ctx, const char *fmt, ...);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... err! ]
|
|
|
|
summary: |
|
|
<p>Convenience API call, equivalent to
|
|
<code><a href="#duk_error">duk_error()</a></code> with an error code
|
|
<code>DUK_ERR_REFERENCE_ERROR</code>.</p>
|
|
|
|
example: |
|
|
return duk_reference_error(ctx, "my error: %d", (int) argval);
|
|
|
|
tags:
|
|
- error
|
|
|
|
seealso:
|
|
- duk_error
|
|
|
|
introduced: 2.0.0
|
|
|