Merge pull request #13959 from mlutfy/setMessageError
[civicrm-core.git] / Civi / API / Exception / NotImplementedException.php
CommitLineData
fedf821c
TO
1<?php
2namespace Civi\API\Exception;
3
4require_once 'api/Exception.php';
6550386a
EM
5
6/**
7 * Class NotImplementedException
8 * @package Civi\API\Exception
9 */
fedf821c 10class NotImplementedException extends \API_Exception {
34f3bbd9 11
6550386a
EM
12 /**
13 * @param string $message
8882ff5c 14 * The human friendly error message.
6550386a 15 * @param array $extraParams
8882ff5c
TO
16 * Extra params to return. eg an extra array of ids. It is not mandatory,
17 * but can help the computer using the api. Keep in mind the api consumer
18 * isn't to be trusted. eg. the database password is NOT a good extra data.
19 * @param \Exception|NULL $previous
20 * A previous exception which caused this new exception.
6550386a 21 */
c64f69d9 22 public function __construct($message, $extraParams = [], \Exception $previous = NULL) {
fedf821c
TO
23 parent::__construct($message, \API_Exception::NOT_IMPLEMENTED, $extraParams, $previous);
24 }
96025800 25
6550386a 26}