Exception: Mondido::Exceptions::ValidationException
- Inherits:
-
StandardError
- Object
- StandardError
- Mondido::Exceptions::ValidationException
- Defined in:
- lib/mondido/exceptions/validation_exception.rb
Instance Method Summary collapse
-
#initialize(err) ⇒ ValidationException
constructor
A new instance of ValidationException.
Constructor Details
#initialize(err) ⇒ ValidationException
Returns a new instance of ValidationException.
4 5 6 7 8 |
# File 'lib/mondido/exceptions/validation_exception.rb', line 4 def initialize(err) match = err.match(/.+\s(.+)/) error = match[1] super(error) end |