class GLib::Error
Overrides for GError, used by GLib
for handling non-fatal errors.
Constants
- GIR_FFI_DOMAIN
Public Class Methods
from(obj)
click to toggle source
# File lib/ffi-glib/error.rb, line 14 def self.from(obj) from_exception obj end
from_exception(exception)
click to toggle source
# File lib/ffi-glib/error.rb, line 10 def self.from_exception(exception) new_literal GIR_FFI_DOMAIN, 0, exception.message end