Homestyx hydra
Diffusion hydra 26ec9247320b

When a page throws an exception and response construction throws another…

Description

When a page throws an exception and response construction throws another exception, throw an aggregate exception

Summary:
Depends on D20719. Currently, if a page throws an exception (like a policy exception) and rendering that exception into a response (like a policy dialog) throws another exception (for example, while constructing breadcrumbs), we only show the orginal exception.

This is usually the more useful exception, but sometimes we actually care about the other exception.

Instead of guessing which one is more likely to be useful, throw them both as an "AggregateException" and let the high-level handler flatten it for display.

Test Plan: {F6749312}

Differential Revision: https://secure.phabricator.com/D20720

Details

Provenance
epriestleyAuthored on Aug 16 2019, 5:43 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:201634848eb6: Make Phortune payment methods transaction-oriented and always support "Add…
Branches
Unknown
Tags
Unknown

Event Timeline