module OpenSCAP
Copyright © 2014 Red Hat Inc.
This software is licensed to you under the GNU General Public License, version 2 (GPLv2). There is NO WARRANTY for this software, express or implied, including the implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 along with this software; if not, see www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
Copyright © 2014 Red Hat Inc.
This software is licensed to you under the GNU General Public License, version 2 (GPLv2). There is NO WARRANTY for this software, express or implied, including the implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 along with this software; if not, see www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
Public Class Methods
# File lib/openscap/openscap.rb, line 18 def self.error? return oscap_err() end
# File lib/openscap/openscap.rb, line 22 def self.get_full_error err = oscap_err_get_full_error return err.null? ? nil : err.read_string() end
# File lib/openscap/openscap.rb, line 27 def self.raise! err = get_full_error if err.nil? err = '(unknown error)' end raise OpenSCAPError, err end