4 * These exceptions are raised when a client submits a malformed request.
6 * These errors are caught by Aphront itself and occur too early or too
7 * fundamentally in request handling to allow the request to route to a
8 * controller or survive to normal processing.
10 * These exceptions can be made "unlogged", which will prevent them from being
11 * logged. The intent is that errors which are purely the result of client
12 * failure and of no interest to the server can be raised silently to avoid
13 * cluttering the logs with client errors that are not actionable.
15 final class AphrontMalformedRequestException
extends AphrontException
{
20 public function __construct($title, $message, $unlogged = false) {
21 $this->title
= $title;
22 $this->isUnlogged
= $unlogged;
23 parent
::__construct($message);
26 public function getTitle() {
30 public function getIsUnlogged() {
31 return $this->isUnlogged
;