Class: Syskit::Test::ProfileAssertions::ProfileAssertionFailed
- Inherits:
-
Roby::ExceptionBase
- Object
- Roby::ExceptionBase
- Syskit::Test::ProfileAssertions::ProfileAssertionFailed
- Defined in:
- lib/syskit/test/profile_assertions.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
Instance Method Summary collapse
-
#initialize(act, original_error) ⇒ ProfileAssertionFailed
constructor
A new instance of ProfileAssertionFailed.
- #pretty_print(pp) ⇒ Object
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
#actions ⇒ Object (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 |