Path: blob/master/src/aphront/exception/AphrontMalformedRequestException.php
12241 views
<?php12/**3* These exceptions are raised when a client submits a malformed request.4*5* These errors are caught by Aphront itself and occur too early or too6* fundamentally in request handling to allow the request to route to a7* controller or survive to normal processing.8*9* These exceptions can be made "unlogged", which will prevent them from being10* logged. The intent is that errors which are purely the result of client11* failure and of no interest to the server can be raised silently to avoid12* cluttering the logs with client errors that are not actionable.13*/14final class AphrontMalformedRequestException extends AphrontException {1516private $title;17private $isUnlogged;1819public function __construct($title, $message, $unlogged = false) {20$this->title = $title;21$this->isUnlogged = $unlogged;22parent::__construct($message);23}2425public function getTitle() {26return $this->title;27}2829public function getIsUnlogged() {30return $this->isUnlogged;31}3233}343536