error


Description:

[ Diagnostics ]
[ PrintfFormat ]
[ NoReturn ]
public void error (string format, ...)

Example: Logging, error:

public static int main (string[] args) {
// Output:
// ``** (process:<PID>): ERROR **: <FILENAME>:<LINE>: my 10. error``
// ``Trace/breakpoint trap``

// Terminate calling process & log an error:
error ("my %d. %s", 10, "error");
}

valac --pkg glib-2.0 GLib.error.vala


Namespace: GLib
Package: glib-2.0