Exception: Mondido::Exceptions::ValidationException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mondido/exceptions/validation_exception.rb

Instance Method Summary collapse

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