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



9
10
11
# File 'lib/ohm/validations.rb', line 9

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

- (Object) errors (readonly)

Returns the value of attribute errors



7
8
9
# File 'lib/ohm/validations.rb', line 7

def errors
  @errors
end

Instance Method Details

- (Object) message



13
14
15
# File 'lib/ohm/validations.rb', line 13

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