Exception: Itsi::Server::TypedHandlers::ParamParser::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Itsi::Server::TypedHandlers::ParamParser::ValidationError
- Defined in:
- lib/itsi/server/typed_handlers/param_parser.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
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
#errors ⇒ Object (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 |