Exception: Droonga::MultiplexError

Inherits:
Error
  • Object
show all
Defined in:
lib/droonga/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors = []) ⇒ MultiplexError

Returns a new instance of MultiplexError.



25
26
27
28
29
30
31
32
# File 'lib/droonga/error.rb', line 25

def initialize(errors=[])
  @errors = errors
  error_messages = @errors.collect do |error|
    error.message
  end
  message = error_messages.sort.join("\n-----------------------\n")
  super(message)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



23
24
25
# File 'lib/droonga/error.rb', line 23

def errors
  @errors
end