public function __construct($statusCode, $location = null) { parent::__construct('Redirect exception', $statusCode); $this->location = $location; }