Skip to content

Expect Exception Plugin

Compare
Choose a tag to compare
@devosc devosc released this 25 Sep 15:42
· 220 commits to master since this release

A new plugin has been added to help catch exceptions.

new Expect(new Call('web'), new Call('exception\response'), true, false)

The Expect plugin will resolve a plugin and if an exception is thrown, it will be caught and passed to the second plugin to resolve. Its third parameter indicates whether the exception should be passed to the second plugin as a named argument and its fourth parameter indicates whether to merge the exception with the arguments passed to the first plugin. This plugin has been used to replace the Mvc5\Web class.