GLib.Error.new_literal
function new_literal(domain: GLib.Quark, code: Number(gint), message: String): GLib.Error { // Gjs wrapper for g_error_new_literal() }
Creates a new GLib.Error; unlike GLib.Error.new, message is not a printf()-style format string. Use this function if message contains text you don't have control over, that could include printf() escape sequences.
- domain
error domain
- code
error code
- message
error message
- Returns
a new GLib.Error