Raised when the C layer reports a non-OK status, carrying the library's human-readable message.
25 26 27 28
# File 'lib/ccharts.rb', line 25 def self.for_status(status) msg = FFI.read_cstr(FFI::ERROR_MSG.call(status)) || "unknown ccharts error" new("#{msg} (status #{status})") end