onException

Wraps the StorePlugin.onException method of the child plugin passed in the block parameter.

The plugin's StorePlugin.onException method will not be invoked, unless you manually call StorePlugin.onException inside this block!

For pre-context parameters version, to correctly call the child method, use child.run { onException(e) }

The return value of block will mean what the store reports as the result of handling the exception. Use null to swallow the exception. Use the return value of child.onException to delegate the result.

See the DecoratorBuilder documentation for details on how this function behaves.