method public final

PostDecode::getErrorByCode()

Класс: \Bitrix\Main\Engine\ActionFilter\PostDecode

Сигнатура

public final getErrorByCode(string $code) : Error

Описание

Получение единственной ошибки с необходимым кодом.

Параметры

$code string
Код ошибки.

Возвращаемое значение

Error

Как применяется в PostDecode

PostDecode::getErrorByCode() — метод класса \Bitrix\Main\Engine\ActionFilter\PostDecode модуля «Главный модуль».

Метод объекта: сначала нужен экземпляр PostDecode.

use Bitrix\Main\Engine\ActionFilter\PostDecode;

/** @var PostDecode $object */
$code = '';
$result = $object->getErrorByCode($code);
// $result: Error

Другие методы PostDecode

getErrorByCode() есть и у других классов модуля «Главный модуль»: Action, AjaxJson, Authentication, Base, CloseSession, ClosureAction, ClosureWrapper, Component.

Исходный файл: source/main/lib/engine/actionfilter/postdecode.php:114

Что будем искать? Например,Продвижение