Exception: Bzip2::FFI::Error::UnexpectedError

Inherits:
Bzip2Error
  • Object
show all
Defined in:
lib/facter/util/bzip2-ffi-1.1.0/lib/bzip2/ffi/error.rb

Overview

Raised if libbz2 reported an unexpected error code.

Instance Method Summary collapse

Constructor Details

#initialize(error_code) ⇒ UnexpectedError

Initializes a new instance of UnexpectedError.

Parameters:

  • error_code (Integer)

    The error_code reported by libbz2.



97
98
99
# File 'lib/facter/util/bzip2-ffi-1.1.0/lib/bzip2/ffi/error.rb', line 97

def initialize(error_code) #:nodoc:
  super("An unexpected error was detected (error code: #{error_code})")
end