%PDF- %PDF-
| Direktori : /home/bitrix/www/bitrix/modules/rest/lib/ |
| Current File : //home/bitrix/www/bitrix/modules/rest/lib/accessexception.php |
<?
namespace Bitrix\Rest;
class AccessException
extends RestException
{
const MESSAGE = 'Access denied!';
const CODE = 'ACCESS_DENIED';
public function __construct($msg = '', \Exception $previous = null)
{
parent::__construct(
static::MESSAGE.($msg === '' ? '' : (' '.$msg)),
static::CODE,
\CRestServer::STATUS_FORBIDDEN,
$previous
);
}
}
?>