Exception: Otoroshi::Collection::AssertError

Inherits:
Error
  • Object
show all
Defined in:
lib/otoroshi/exceptions.rb

Overview

Manages errors raised when value does not pass the assertion

Instance Method Summary collapse

Constructor Details

#initialize(property) ⇒ AssertError

Returns a new instance of AssertError.

Examples:

":numbers contains elements that do not respect the assertion"

Parameters:

  • property (Symbol)

    name of the property



84
85
86
# File 'lib/otoroshi/exceptions.rb', line 84

def initialize(property)
  super ":#{property} contains elements that do not respect the assertion"
end