Exception: Archive::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ffi-libarchive/archive.rb

Instance Method Summary collapse

Constructor Details

#initialize(archive) ⇒ Error

Returns a new instance of Error.



322
323
324
325
326
327
328
# File 'lib/ffi-libarchive/archive.rb', line 322

def initialize(archive)
  if archive.is_a? String
    super archive
  else
    super C.archive_error_string(archive).to_s
  end
end