Class: Syskit::Test::ProfileAssertions::ProfileAssertionFailed

Inherits:
Roby::ExceptionBase
  • Object
show all
Defined in:
lib/syskit/test/profile_assertions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(act, original_error) ⇒ ProfileAssertionFailed

Returns a new instance of ProfileAssertionFailed



15
16
17
18
# File 'lib/syskit/test/profile_assertions.rb', line 15

def initialize(act, original_error)
    @actions = Array(act)
    super([original_error])
end

Instance Attribute Details

#actionsObject (readonly)

Returns the value of attribute actions



13
14
15
# File 'lib/syskit/test/profile_assertions.rb', line 13

def actions
  @actions
end

Instance Method Details

#pretty_print(pp) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/syskit/test/profile_assertions.rb', line 20

def pretty_print(pp)
    pp.text "Failure while running an assertion on"
    pp.nest(2) do
        actions.each do |act|
            pp.breakable
            act.pretty_print(pp)
        end
    end
end