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

Check Hooks in AsyncServiceProvider must throw exceptions #297

Open
Lafunamor opened this issue Sep 11, 2019 · 0 comments
Open

Check Hooks in AsyncServiceProvider must throw exceptions #297

Lafunamor opened this issue Sep 11, 2019 · 0 comments

Comments

@Lafunamor
Copy link
Member

Problem

When verifying input in async service providers using the predefined methods (e.g. beforeUpdate) Exceptions must be thrown to stop the flow.
This is not optimal and should be revised.

Requirements

  • no exceptions should be used for flow control

Proposal

  • Refactor AsyncServiceProvider to use other methods than exceptions for flow control. E.g. the methods could return Boolean values.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant