Commit | Line | Data |
---|---|---|
fedf821c TO |
1 | <?php |
2 | namespace Civi\API\Exception; | |
3 | ||
4 | require_once 'api/Exception.php'; | |
6550386a EM |
5 | |
6 | /** | |
7 | * Class UnauthorizedException | |
8 | * @package Civi\API\Exception | |
9 | */ | |
fedf821c | 10 | class UnauthorizedException extends \API_Exception { |
6550386a EM |
11 | /** |
12 | * @param string $message | |
13 | * @param array $extraParams | |
14 | * @param Exception $previous | |
15 | */ | |
fedf821c TO |
16 | public function __construct($message, $extraParams = array(), Exception $previous = NULL) { |
17 | parent::__construct($message, \API_Exception::UNAUTHORIZED, $extraParams, $previous); | |
18 | } | |
6550386a | 19 | } |