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

Constant Summary collapse

DOUBLE_COLON =
'::'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(object, 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:

  • object (Object)
  • names (Enumerable<Symbol>)


29
30
31
# File 'lib/anima/error.rb', line 29

def initialize(object, names)
  super("#{name} attribute(s) #{names.inspect} for #{object.class}")
end