Guarantee terms in PhabricatorAuthPasswordEngine are strings
[phabricator/blender.git] / src / aphront / exception / AphrontMalformedRequestException.php
bloba4f265f473382d2a1e4e7e85fd5ea4912e4a1a32
1 <?php
3 /**
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 {
17 private $title;
18 private $isUnlogged;
20 public function __construct($title, $message, $unlogged = false) {
21 $this->title = $title;
22 $this->isUnlogged = $unlogged;
23 parent::__construct($message);
26 public function getTitle() {
27 return $this->title;
30 public function getIsUnlogged() {
31 return $this->isUnlogged;