MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_throw_gerror_message

Function gjs_throw_gerror_message

gjs/jsapi-util-error.cpp:211–215  ·  view source on GitHub ↗

* gjs_throw_gerror_message: * * Similar to gjs_throw_gerror(), but does not marshal the GError structure into * JavaScript. Instead, it creates a regular JavaScript Error object and copies * the GError's message into it. * * Use this when handling a GError in an internal function, where the error code * and domain don't matter. So, for example, don't use it to throw errors around * calling

Source from the content-addressed store, hash-verified

209 * calling from JS into C code.
210 */
211bool gjs_throw_gerror_message(JSContext* cx, Gjs::AutoError const& error) {
212 g_return_val_if_fail(error, false);
213 gjs_throw_literal(cx, error->message);
214 return false;
215}
216
217/**
218 * format_saved_frame:

Callers 4

import_module_initFunction · 0.85
import_fileMethod · 0.85
gjs_load_internal_sourceFunction · 0.85
gjs_string_to_filenameFunction · 0.85

Calls 1

gjs_throw_literalFunction · 0.85

Tested by

no test coverage detected