Expand description
Catching panics inside a handler so one bad request cannot take down the connection — and so the dev error page can show where it happened.
Structs§
- Catch
Unwind - A future that catches a panic raised while polling the inner future.
- Panic
Location - Where the last panic on this thread happened, captured by our hook because the payload alone does not carry a location.
Functions§
- catch
- Run a future, converting a panic into an
Err. - install_
hook - Install a panic hook that records the location and stays quiet.
- message_
of - Turn a panic payload into a readable message.
- take_
location