<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
namespace Civi\API\Event;
private $exception;
/**
- * @param $exception
- * @param $apiProvider
- * @param $apiRequest
+ * @param \Exception $exception
+ * The exception which arose while processing the API request.
+ * @param \Civi\API\Provider\ProviderInterface $apiProvider
+ * The API provider responsible for executing the request.
+ * @param array $apiRequest
+ * The full description of the API request.
*/
- function __construct($exception, $apiProvider, $apiRequest) {
+ public function __construct($exception, $apiProvider, $apiRequest) {
$this->exception = $exception;
parent::__construct($apiProvider, $apiRequest);
}
public function getException() {
return $this->exception;
}
+
}