Class GException
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
A GException wraps a GLib.Error and allows to catch it with a given error code.
public sealed class GException : Exception, ISerializable, IDisposable
- Inheritance
-
GException
- Implements
- Inherited Members
Constructors
GException(ErrorHandle)
A GException wraps a GLib.Error and allows to catch it with a given error code.
public GException(ErrorHandle errorHandle)
Parameters
errorHandleErrorHandle
Properties
ErrorCode
The ErrorCode of this exception.
public ErrorCode ErrorCode { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Matches(ErrorCode)
Compare if this exception matches the given ErrorCode.
public bool Matches(ErrorCode errorCode)
Parameters
errorCodeErrorCodeThe error code to check.
Returns
- bool
TRUE if the given error code matches the exception, otherwise FALSE.
Matches(Quark)
Compare if this exception matches the given domain regardless of any error code.
public bool Matches(Quark domain)
Parameters
domainQuarkThe domain to check.
Returns
- bool
TRUE if the given domain matches the domain of the exception, otherwise FALSE.