Sha256: 49787c435e372afbaf30dd22206df9bffe125ff88368410202c7610850138dba

Contents?: true

Size: 365 Bytes

Versions: 9

Compression:

Stored size: 365 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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.11.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.10.2 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.10.1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.10.0 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.9.5 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.9.4 lib/gir_ffi/property_not_found_error.rb
gir_ffi-0.9.3 lib/gir_ffi/property_not_found_error.rb