Bitrix API

ErrorableImplementation

Tags
@implements

Bitrix\Main\Errorable

Table of Contents

Methods

getErrorByCode()  : Error|null
Returns an error with the necessary code.
getErrors()  : array<string|int, Error>
Getting array of errors.
hasErrors()  : bool
Return true if collection has errors.

Methods

getErrorByCode()

Returns an error with the necessary code.

public getErrorByCode(string|int $code) : Error|null
Parameters
$code : string|int

The code of the error.

Return values
Error|null

        
On this page

Search results