Create a plugin that simply invokes StorePlugin.onException and decides how to proceed accordingly. See the parent function for more information.