Exception: Itsi::Server::TypedHandlers::ParamParser::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/itsi/server/typed_handlers/param_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ValidationError

Returns a new instance of ValidationError.



9
10
11
12
# File 'lib/itsi/server/typed_handlers/param_parser.rb', line 9

def initialize(errors)
  @errors = errors
  super("Validation failed: #{errors.join('; ')}")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



8
9
10
# File 'lib/itsi/server/typed_handlers/param_parser.rb', line 8

def errors
  @errors
end