Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/exception/AphrontMalformedRequestException.php
- This file was added.
<?php | |||||
/** | |||||
* These exceptions are raised when a client submits a malformed request. | |||||
* | |||||
* These errors are caught by Aphront itself and occur too early or too | |||||
* fundamentally in request handling to allow the request to route to a | |||||
* controller. | |||||
*/ | |||||
final class AphrontMalformedRequestException extends AphrontException { | |||||
private $title; | |||||
private $silent; | |||||
public function __construct($title, $message, $silent = false) { | |||||
$this->title = $title; | |||||
$this->silent = $silent; | |||||
parent::__construct($message); | |||||
} | |||||
public function getTitle() { | |||||
return $this->title; | |||||
} | |||||
public function getSilent() { | |||||
return $this->silent; | |||||
} | |||||
} |