Метод toValidationError
Сигнатура метода
private static function toValidationError(Error $error): Error
Возвращает:
Error
Описание
A refusal as a validation item: the message untouched, the code replaced by the address of the value it is about. {@see \Bitrix\Rest\V3\Exception\Validation\ValidationException::output()} publishes the code of an error as the `field` of the answer, so a code here is an address and nothing else.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$error
|
Error
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/ResponseMapper/Requisite/ClientRequisiteErrorMapper.php
Расположение метода в файле
Строки
83–91