class OFlow::ValidateError
An Exception raised when there are validation errors.
Attributes
problems[RW]
Public Class Methods
new(errors)
click to toggle source
Calls superclass method
# File lib/oflow/errors.rb, line 58 def initialize(errors) @problems = errors ma = ["#{errors.size} validation errors."] errors.each { |e| ma << e.to_s } super(ma.join("\n ")) end