require_relative "runtime_error" module Hexx # An exception to be raised by the Hexx::Models#validate! method. # # It is expected, that the object stores error messages in its errors # collection. # class RecordInvalid < RuntimeError def message "Record invalid: #{ errors.inspect }" end end end