Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
accessexception.php
1<?
2namespace Bitrix\Rest;
3
4
6 extends RestException
7{
8 const MESSAGE = 'Access denied!';
9 const CODE = 'ACCESS_DENIED';
10
11 public function __construct($msg = '', \Exception $previous = null)
12 {
13 parent::__construct(
14 static::MESSAGE.($msg === '' ? '' : (' '.$msg)),
15 static::CODE,
16 \CRestServer::STATUS_FORBIDDEN,
17 $previous
18 );
19 }
20}
21?>
__construct($msg='', \Exception $previous=null)