ErrorWrap

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

Constructors

this
this(void* err, bool unused)
this
this(Quark domain, int code, string message)

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

cPtr
void* cPtr()

Get wrapped C GError pointer.

copy
ErrorWrap copy()

Copy a an ErrorWrap object.

matches
bool matches(Quark domain, int code)

Check whether @error has domain and code.

Properties

code
int code [@property getter]

Get error code.

code
int code [@property setter]

Set error code.

domain
Quark domain [@property getter]

Get error domain quark.

domain
Quark domain [@property setter]

Set error domain quark.

message
string message [@property getter]

Get Error message.

message
string message [@property setter]

Set error message.

Static functions

newLiteral
ErrorWrap newLiteral(Quark domain, int code, string message)

Create a new ErrorWrap` object.