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.



312
313
314
315
316
317
318
# File 'lib/ffi-libarchive/archive.rb', line 312

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