Exception: Groonga::Schema::UnknownOptions

Inherits:
Error
  • Object
show all
Defined in:
lib/groonga/schema.rb

Overview

未知のオプションを指定したときに発生する。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, unknown_keys, available_keys) ⇒ UnknownOptions

Returns a new instance of UnknownOptions



116
117
118
119
120
121
122
123
124
# File 'lib/groonga/schema.rb', line 116

def initialize(options, unknown_keys, available_keys)
  @options = options
  @unknown_keys = unknown_keys
  @available_keys = available_keys
  message = "unknown keys are specified: #{@unknown_keys.inspect}"
  message << ": available keys: #{@available_keys.inspect}"
  message << ": options: #{@options.inspect}"
  super(message)
end

Instance Attribute Details

#available_keysObject (readonly)

Returns the value of attribute available_keys



115
116
117
# File 'lib/groonga/schema.rb', line 115

def available_keys
  @available_keys
end

#optionsObject (readonly)

Returns the value of attribute options



115
116
117
# File 'lib/groonga/schema.rb', line 115

def options
  @options
end

#unknown_keysObject (readonly)

Returns the value of attribute unknown_keys



115
116
117
# File 'lib/groonga/schema.rb', line 115

def unknown_keys
  @unknown_keys
end