X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FException%2FNotImplementedException.php;h=b8f253f13ebdde72c4fecf7fc514335a2621ba3b;hb=281eacd865bdf56317eb58eb13076b3e4c33e032;hp=68ca54478a42b3080026de73bb8d1cf3c215df2c;hpb=d92623decb352eab5b403d0c9cab181a831bfaac;p=civicrm-core.git diff --git a/Civi/API/Exception/NotImplementedException.php b/Civi/API/Exception/NotImplementedException.php index 68ca54478a..b8f253f13e 100644 --- a/Civi/API/Exception/NotImplementedException.php +++ b/Civi/API/Exception/NotImplementedException.php @@ -8,12 +8,19 @@ require_once 'api/Exception.php'; * @package Civi\API\Exception */ class NotImplementedException extends \API_Exception { + /** * @param string $message + * The human friendly error message. * @param array $extraParams - * @param Exception $previous + * Extra params to return. eg an extra array of ids. It is not mandatory, + * but can help the computer using the api. Keep in mind the api consumer + * isn't to be trusted. eg. the database password is NOT a good extra data. + * @param \Exception|NULL $previous + * A previous exception which caused this new exception. */ - public function __construct($message, $extraParams = array(), Exception $previous = NULL) { + public function __construct($message, $extraParams = [], \Exception $previous = NULL) { parent::__construct($message, \API_Exception::NOT_IMPLEMENTED, $extraParams, $previous); } + }