Comments (2)
I think something like this is okay, as it gives options to the developer on how they handle that exception. Mostly because if the event did return a response, by using an exception the calling code can catch it and still choose to return the response.
Perhaps it could return Throwable, but then the calling code would have nothing to catch? However then it would change the return type of the method. So using an exception here allows both cases to be workable.
from crud.
Ok tx.
from crud.
Related Issues (20)
- Catching "Integrity constraint violation" error HOT 2
- Hiding Properties defined in $_hidden in the model Entity does not work [2] HOT 3
- Call to a member function set() on null HOT 2
- The `description` column won't save; `title` works though HOT 2
- Adding WHERE condition to the index action HOT 2
- Setting the sort order HOT 1
- Cakephp 4.4 breaks ApiListener HOT 3
- Document useModel() Method.
- Errors when visiting `/error` url HOT 4
- Anyone for hire?
- Move beforePaginate() of RelatedModelsListener in a separate listener.
- CrudComponent::table() should support non-table model types HOT 9
- Call to `isActionMapped` during `Controller.initialize` event crashes controller bake HOT 1
- PHP v8 Deprecation Warnings HOT 1
- Setting add and edit associations deeper than one level with relatedModels HOT 1
- New release HOT 3
- Crud ExceptionHandler HOT 2
- One catch-all controller for all tables instead of a separate controller for every table? HOT 3
- How does FriendsOfCake/crud know which model to use? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crud.