Exception: Droonga::Catalog::ValidationError
- Defined in:
- lib/droonga/catalog/errors.rb
Defined Under Namespace
Classes: Detail
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, details) ⇒ ValidationError
constructor
A new instance of ValidationError.
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) = "validation error: <#{path}>" details.each do |detail| << "\n * #{detail.value_path}: #{detail.}" end super() end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
29 30 31 |
# File 'lib/droonga/catalog/errors.rb', line 29 def details @details end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
29 30 31 |
# File 'lib/droonga/catalog/errors.rb', line 29 def path @path end |