Exception: AbideDevUtils::XCCDF::Parser::Objects::DiffableObject::NotSameClassError

Inherits:
DiffableObjectError
  • Object
show all
Defined in:
lib/abide_dev_utils/xccdf/parser/objects/diffable_object.rb

Overview

Raised when the diffed objects are not instances of the same class

Instance Method Summary collapse

Constructor Details

#initialize(self_obj = nil, other_obj = nil) ⇒ NotSameClassError

Returns a new instance of NotSameClassError.



25
26
27
28
29
30
31
# File 'lib/abide_dev_utils/xccdf/parser/objects/diffable_object.rb', line 25

def initialize(self_obj = nil, other_obj = nil)
  super(
    self_obj,
    other_obj,
    custom_msg: "This object's class (#{self_obj.class}) does not match other object's class (#{other_obj.class})",
  )
end