module Babeltrace2::BTCurrentThread
Constants
- ErrorAppendCauseStatus
Public Class Methods
clear_error()
click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 233 def self.clear_error Babeltrace2.bt_current_thread_clear_error self end
move_error(error)
click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 238 def self.move_error(error) raise Error.new("Error already released") unless error.handle Babeltrace2.bt_current_thread_move_error(error.handle) error.instance_variable_set(:@handle, nil) self end
take_error()
click to toggle source
# File lib/babeltrace2/error-reporting.rb, line 227 def self.take_error handle = Babeltrace2.bt_current_thread_take_error return nil if handle.null? BTError.new(handle) end