/usr/lib/ruby/vendor_ruby/gir_ffi/glib_error.rb is in ruby-gir-ffi 0.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | module GirFFI
# Exception class to be raised whenever an error is signaled through
# GLib::Error.
class GLibError < RuntimeError
attr_reader :domain_quark
attr_reader :code
def initialize(g_error)
@domain_quark = g_error.domain
@code = g_error.code
super g_error.message
end
def domain
@domain ||= GLib.quark_to_string @domain_quark
end
end
end
|