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.
24 lines
434 B
24 lines
434 B
8 years ago
|
name: duk_generic_error
|
||
|
|
||
|
proto: |
|
||
|
duk_ret_t duk_generic_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_ERROR</code>.</p>
|
||
|
|
||
|
example: |
|
||
|
return duk_generic_error(ctx, "my error: %d", (int) argval);
|
||
|
|
||
|
tags:
|
||
|
- error
|
||
|
|
||
|
seealso:
|
||
|
- duk_error
|
||
|
|
||
|
introduced: 2.0.0
|