Exception: Droonga::Catalog::ValidationError

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

Defined Under Namespace

Classes: Detail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, details) ⇒ ValidationError

Returns a new instance of ValidationError.



30
31
32
33
34
35
36
# File 'lib/droonga/catalog/errors.rb', line 30

def initialize(path, details)
  message = "validation error: <#{path}>"
  details.each do |detail|
    message << "\n  * #{detail.value_path}: #{detail.message}"
  end
  super(message)
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



29
30
31
# File 'lib/droonga/catalog/errors.rb', line 29

def details
  @details
end

#pathObject (readonly)

Returns the value of attribute path.



29
30
31
# File 'lib/droonga/catalog/errors.rb', line 29

def path
  @path
end