glib.error

Module for [ErrorWrap] class

class ErrorWrap

Types 1

classErrorWrap : Exception

The glib.error.ErrorWrap structure contains information about an error that has occurred.

Fields
private GError * errPtr
Methods
void * _cPtr() nothrow @nogcGet wrapped C GError pointer.
Quark domain() @property nothrow @nogcGet error domain quark. Returns: Error domain string quark
void domain(Quark propval) @property nothrow @nogcSet error domain quark. Params: propval = Quark value to assign
int code() @property nothrow @nogcGet error code. Returns: Error code
void code(int propval) @property nothrow @nogcSet error code. Params: propval = Error code to assign
string message() @property nothrowGet Error message. Returns: Error message string
void message(string propval) @property nothrowSet error message. Params: propval = Error message to assign
ErrorWrap newLiteral(Quark domain, int code, string message) static nothrowCreate a new `ErrorWrap`` object. Params: domain = Error domain string quark code = Error code message = The error message Returns: New `ErrorWrap` object
ErrorWrap copy() nothrowCopy a an `ErrorWrap` object.
bool matches(Quark domain, int code) nothrowCheck whether @error has `domain` and `code`. Params: domain = Error domain string quark code = Error code Returns: true if error matches criteria, false otherwise
Constructors
this(void * err, bool unused = false)
this(Quark domain, int code, string message)
Destructors