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