Exception: Otoroshi::Collection::ArrayError

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

Overview

Manages errors raised when value should be an collection

Instance Method Summary collapse

Constructor Details

#initialize(property) ⇒ ArrayError

Returns a new instance of ArrayError.

Examples:

":numbers is not an array"

Parameters:

  • property (Symbol)

    name of the property



49
50
51
# File 'lib/otoroshi/exceptions.rb', line 49

def initialize(property)
  super ":#{property} is not an array"
end