Sha256: 6964a98ab910b65a488a511b97e0911b746c86e8267be92e5abf9c7aa7c332ab

Contents?: true

Size: 366 Bytes

Versions: 22

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  # Exception class to be raised when a property is not found.
  class PropertyNotFoundError < RuntimeError
    attr_reader :property_name

    def initialize(property_name, klass)
      @property_name = property_name
      @klass = klass
      super "Property '#{property_name}' not found in #{klass}"
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.16.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.16.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.9 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.8 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.7 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.6 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.5 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.4 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.3 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.2 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.15.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.14.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.14.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.13.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.13.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.12.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.12.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.11.4 lib/gir_ffi/property_not_found_error.rb