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

error?() click to toggle source
# File lib/openscap/openscap.rb, line 18
def self.error?
  return oscap_err()
end
get_full_error() click to toggle source
# 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
raise!() click to toggle source
# 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