Метод refusalOf

private static

Сигнатура метода

private static function refusalOf(Result $result): RestException

Возвращает: RestException

Описание

What REST answers to a refused operation that addresses no particular value: a caller who may not perform the action at all is answered by access, and everything else is something the client can fix in its input. A code the group does not know is answered the same way rather than as a failure of the portal: an expected error of a client is not journalled as a system fault. The text of the storage boundary never reaches a client - the domain does not let it out in the first place. A failure of the storage itself does not arrive here at all: it escapes the scenario as an exception, and the platform answers it as an internal failure of the portal. Every error of the result travels, not the first one: the rules of the fields are answered all at once, and a client fixing a request wants the whole of what is wrong with it.

Параметры

1
Имя Тип По умолчанию Флаги
$result Result —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/CustomController/Dictionary/DictionaryValue.php
Расположение метода в файле
Строки 369–377

Исходный код

PHP