@kumarshantanu in async middleware, exceptions can be thrown as usual or passed through raise
.
The raise
function should be used when you’re in a new thread.
In your case, you probably don’t need to do anything.
Async middleware generally only cares about errors if it’s consuming them for logging or display purposes.
Thanks @weavejester Is 'respond' required btw? I just copied the style from your 2016 blog post.
@kumarshantanu For async? Yes. How else would it communicate the information?