Exception: Otoroshi::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:

":number does not respect the assertion"

Parameters:

  • property (Symbol)

    name of the property



38
39
40
# File 'lib/otoroshi/exceptions.rb', line 38

def initialize(property)
  super ":#{property} does not respect the assertion"
end