All Cobra Statements

All supported cobra statements (alpha order)

  • expect? - assert receiving an exception
  • ignore? - remove handlers for event
  • listen? - specify handler for event
  • pass? - specify non operation
  • throw? - generate an exception
  • trace? - emit trace/debug info
  • try-catch? - try a block and handle any thrown exceptions
  • while - loop while a condition is true
  • yield? - yield a result from a generator