Exception: Anima::Error Private

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

Overview

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

Abstract base class for anima errors

Constant Summary collapse

FORMAT =

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

'%s attributes missing: %s, unknown: %s'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(klass, missing, unknown) ⇒ 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:

  • klass (Class)

    the class being initialized

  • missing (Enumerable<Symbol>)
  • unknown (Enumerable<Symbol>)


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

def initialize(klass, missing, unknown)
  super(FORMAT % [klass, missing, unknown])
end