class Assertion::InvalidError

The exception to be raised by invalid assertions’ ‘validate!` method call

@api public

Attributes

messages[R]

@!attribute [r] messages

@return [Array<String>] The list of error messages

Public Class Methods

new(*messages) click to toggle source

@private

# File lib/assertion/invalid_error.rb, line 22
def initialize(*messages)
  @messages = messages.flatten
  IceNine.deep_freeze(self)
end

Public Instance Methods

inspect() click to toggle source

@private

# File lib/assertion/invalid_error.rb, line 34
def inspect
  "<#{self} @messages=#{messages}>"
end