1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
module GLib load_class :Error # Overrides for GError, used by GLib for handling non-fatal errors. class Error # TODO: Auto-convert strings and symbols to quarks GIR_FFI_DOMAIN = GLib.quark_from_string("gir_ffi") def self.from_exception ex new_literal GIR_FFI_DOMAIN, 0, ex.message end def self.from it from_exception it end end end |