make the error handling less awkward #10

Closed
opened 2024-05-11 17:21:02 +00:00 by Yessiest · 0 comments
Owner

currently the handle method only allows to define headers and contents of the page sent. it does not allow setting a different code (which is occasionally useful), and since all errors are caught at the top level of the call stack (usually in a path's process_wrapped method), setting up a pipeline to catch errors on a lower level is almost entirely useless, as the error is handled immediately and then sent to the response finalizer.

currently the handle method only allows to define headers and contents of the page sent. it does not allow setting a different code (which is occasionally useful), and since all errors are caught at the top level of the call stack (usually in a path's process_wrapped method), setting up a pipeline to catch errors on a lower level is almost entirely useless, as the error is handled immediately and then sent to the response finalizer.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: Yessiest/landline#10
No description provided.