First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
namespace Civi\API\Exception;
|
||||
|
||||
require_once 'api/Exception.php';
|
||||
|
||||
/**
|
||||
* Class UnauthorizedException
|
||||
* @package Civi\API\Exception
|
||||
*/
|
||||
class UnauthorizedException extends \API_Exception {
|
||||
/**
|
||||
* @param string $message
|
||||
* The human friendly error message.
|
||||
* @param array $extraParams
|
||||
* 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) {
|
||||
parent::__construct($message, \API_Exception::UNAUTHORIZED, $extraParams, $previous);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue