Exception: Anima::Error

Inherits:
RuntimeError
  • Object
show all
Includes:
AbstractType
Defined in:
lib/anima/error.rb

Overview

Abstract base class for anima errors

Direct Known Subclasses

Missing, Unknown

Defined Under Namespace

Classes: Missing, Unknown

Instance Method Summary collapse

Constructor Details

#initialize(model, names) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize object

Parameters:

  • model (Class)
  • names (Enumerable<Symbol>)


16
17
18
# File 'lib/anima/error.rb', line 16

def initialize(model, names)
  super("#{self.class.name.split('::').last} attribute(s) #{names.inspect} for #{model.name}")
end