class GirFFI::GLibError

Exception class to be raised whenever an error is signaled through GLib::Error.

Attributes

code[R]
domain_quark[R]

Public Class Methods

new(g_error) click to toggle source
Calls superclass method
# File lib/gir_ffi/glib_error.rb, line 10
def initialize(g_error)
  @domain_quark = g_error.domain
  @code = g_error.code
  super g_error.message
end

Public Instance Methods

domain() click to toggle source
# File lib/gir_ffi/glib_error.rb, line 16
def domain
  @domain ||= GLib.quark_to_string @domain_quark
end