Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Error and Exception Handling

olbrich edited this page Mar 23, 2011 · 2 revisions

Exceptions

Any exception thrown by a step definition will be caught and passed back to the cucumber process. Normally this will result in the scenario failing and a message describing the exception to be displayed. If you want to catch the exception so you can perform additional actions on it (like verifying it's message), then it is your responsibility to catch the exception in any step definition that may throw one and then store it for later use.

Errors

PHP errors are transformed into exceptions in the same way that PHPUnit does.

Clone this wiki locally