Exception: FFI::NotFoundError

Inherits:
LoadError
  • Object
show all
Defined in:
lib/ffi/library.rb

Overview

Exception raised when a function is not found in libraries

Instance Method Summary collapse

Constructor Details

#initialize(function, *libraries) ⇒ NotFoundError

Returns a new instance of NotFoundError.



53
54
55
# File 'lib/ffi/library.rb', line 53

def initialize(function, *libraries)
  super("Function '#{function}' not found in [#{libraries[0].nil? ? 'current process' : libraries.join(", ")}]")
end