class PackerFiles::Core::SizeException

The Size Exception is generated when child object sizes are greater than that of Parent objects.

Public Class Methods

new(parent_obj, child_obj) click to toggle source

Constructor.

# File lib/PackerFiles/Core/Exceptions.rb, line 42
def initialize(parent_obj, child_obj)
   @super
   parent  = parent_obj.class.name.gsub(/.*::/, '')
   child   = child_obj.class.name.gsub(/.*::/, '')
   self.message = "Sum of #{child} sizes are greater than #{parent} size"
end