exception: Create generic BadRequestError based on ErrorPageError
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 17 May 2016 21:22:05 +0000 (22:22 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 19 May 2016 18:59:15 +0000 (18:59 +0000)
commitb706fa4ac18496f24acb81a891d2130b90848b66
treebc8055429520b3ef258a9468be820bd20d3d7253
parentfc1d4d79602415d1362de9286b0729bd86d03fc1
exception: Create generic BadRequestError based on ErrorPageError

Ideally this would be an option in ErrorPageError (perhaps even the default),
but its constructor isn't very suitable for that.

After this lands, uses of ErrorPageError should be audited to see if it makes
sense to emit a 400 status code.

Change-Id: I4beb6a4f256446b98b66d5e4bcdbab8f247441a8
autoload.php
includes/exception/BadRequestError.php [new file with mode: 0644]
includes/exception/BadTitleError.php