Replies: 1 comment
-
|
Hello, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I wanted to see if there's a better way to return a response when a ControllerEvent or ControllerArgumentsEvent is being dispatched, as neither of them can contain a new explicit response.
We currently throw a specific exception and then catch it with ExceptionEvent to set a response there. While this works, I'd prefer not to throw the exception if not needed.
Is there a better way to handle this? I don't have the information I need until ControllerArgumentsEvent, so there's that.
Any chance that responses could be added to ControllerEvent and ControllerArgumentsEvent in the future? Seems like it should be easy to do.
Beta Was this translation helpful? Give feedback.
All reactions