Exception: Ohm::Validations::Presenter::UnhandledErrors

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ohm/validations.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (UnhandledErrors) initialize(errors)

A new instance of UnhandledErrors



62
63
64
# File 'lib/ohm/validations.rb', line 62

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

- (Object) errors (readonly)

Returns the value of attribute errors



60
61
62
# File 'lib/ohm/validations.rb', line 60

def errors
  @errors
end

Instance Method Details

- (Object) message



66
67
68
# File 'lib/ohm/validations.rb', line 66

def message
  "Unhandled errors: #{errors.inspect}"
end