Exception: PackerFiles::Core::EmptyArrayException
- Defined in:
- lib/PackerFiles/Core/Exceptions.rb
Overview
The EmptyArray Exception is generated when a particular class member array is empty.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(obj, member_name) ⇒ EmptyArrayException
constructor
Constructor.
Constructor Details
#initialize(obj, member_name) ⇒ EmptyArrayException
Constructor.
30 31 32 33 34 |
# File 'lib/PackerFiles/Core/Exceptions.rb', line 30 def initialize(obj, member_name) @super class_name = obj.class.name.gsub(/.*::/, '') self. = "#{class_name}.#{member_name} is empty" end |