Libraries:Gtk:Glib:GError
Types
T
Constants
Nil : T
Functions
New(domain @ Std.Integer.SmallT, code @ Std.Integer.SmallT, format @ Std.String.T, ... @ Std.Object.T) : Gtk.Glib.GError.T
Creates a new T with the given domain and code, and a message formatted with format.
domain | error domain |
code | error code |
format | printf()-style format for error message |
... | parameters for message format |
Returns | a new T |
NewLiteral(domain @ Std.Integer.SmallT, code @ Std.Integer.SmallT, message @ Std.String.T) : Gtk.Glib.GError.T
Creates a new T; unlike g_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 T |
NewValist(domain @ Std.Integer.SmallT, code @ Std.Integer.SmallT, format @ Std.String.T, args @ Agg.List.T) : Gtk.Glib.GError.T
Creates a new T with the given domain and code, and a message formatted with format.
domain | error domain |
code | error code |
format | printf()-style format for error message |
args | va_list of parameters for the message format |
Returns | a new T |
Methods
:"="(_ @ T, _ @ T)
:Code(self @ T) : Std.Integer.SmallT
:Copy(self @ T) : Gtk.Glib.GError.T
:Domain(self @ T) : Std.Integer.SmallT
:Free(self @ T) : Std.Object.T
:Matches(self @ T, domain @ Std.Integer.SmallT, code @ Std.Integer.SmallT) : Std.Symbol.T
Returns TRUE if error matches domain and code, FALSE otherwise. In particular, when error is NULL, FALSE will be returned.
error | a T or NULL |
domain | an error domain |
code | an error code |
Returns | whether error has domain and code |