Exception: Unparser::Anima::Error

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

Overview

Abstract base class for anima errors

Constant Summary collapse

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

Instance Method Summary collapse

Constructor Details

#initialize(klass, missing, unknown) ⇒ undefined

Initialize object

Parameters:

  • klass (Class)

    the class being initialized

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


18
19
20
# File 'lib/unparser/anima/error.rb', line 18

def initialize(klass, missing, unknown)
  super(format(FORMAT, klass, missing, unknown))
end