# encoding: utf-8 module Assertion # The exception to be raised by invalid assertions' `validate!` method call # # @api public # class InvalidError < RuntimeError # @!scope class # @!method new(*names) # Creates an exception instance # # @param [Symbol, Array] names Wrong names of attribute(s) # # @return [Assertion::InvalidError] # # @api private # @private def initialize(*messages) @messages = messages.flatten.freeze super freeze end # @!attribute [r] messages # # @return [Array] The list of error messages # attr_reader :messages end # class InvalidError end # module Assertion