Homec4science

Replace AphrontUsageException with AphrontMalformedRequestException

Authored by epriestley <git@epriestley.com> on Sep 3 2015, 19:04.

Description

Replace AphrontUsageException with AphrontMalformedRequestException

Summary:
Ref T1806. Ref T7173. Context here is that I want to fix "you can not log in to this instance" being a confusing mess with an opaque error. To do this without hacks, I want to:

  • clean up some exception handling behavior (this diff);
  • modularize exception handling (next diff);
  • replace confusing, over-general exceptions with tailored ones in the Phacility cluster, using the new modular stuff.

This cleans up an awkward "AphrontUsageException" which does some weird stuff right now. In particular, it is extensible and extended in one place in Diffusion, but that extension is meaningless.

Realign this as "AphrontMalformedRequestException", which is a better description of what it is and does: raises errors before we can get as far as normal routing and site handling.

Test Plan: Hit some of these exceptions, saw the expected "abandon all hope" error page.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T1806, T7173

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

Details

Committed
epriestley <git@epriestley.com>Sep 3 2015, 19:04
Pushed
aubortJan 31 2017, 17:16
Parents
rPH7ebbe0fe71a6: Add a "Printable Version" link to Phortune invoices
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH20ce1a905f3a: Replace AphrontUsageException with AphrontMalformedRequestException (authored by epriestley <git@epriestley.com>).Sep 3 2015, 19:04