Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс Error
+ Граф наследования:Error:

Открытые члены

 __construct ($message, $code=0, $customData=null)
 
 getCode ()
 
 getMessage ()
 
 getCustomData ()
 
 __toString ()
 
 jsonSerialize ()
 

Защищенные данные

 $code
 
 $message
 
 $customData
 

Подробное описание

См. определение в файле error.php строка 11

Конструктор(ы)

◆ __construct()

__construct (   $message,
  $code = 0,
  $customData = null 
)

Creates a new Error.

Аргументы
string$messageMessage of the error.
int | string$codeCode of the error.
mixed | null$customDataData typically of key/value pairs that provide additional user-defined information about the error.

Переопределяется в Error.

См. определение в файле error.php строка 31

Методы

◆ __toString()

__toString ( )

См. определение в файле error.php строка 64

◆ getCode()

getCode ( )

Returns the code of the error.

Возвращает
int|string

См. определение в файле error.php строка 42

◆ getCustomData()

getCustomData ( )
Возвращает
mixed|null

См. определение в файле error.php строка 59

◆ getMessage()

getMessage ( )

Returns the message of the error.

Возвращает
string

См. определение в файле error.php строка 51

◆ jsonSerialize()

jsonSerialize ( )

Specify data which should be serialized to JSON mixed data which can be serialized by json_encode, which is a value of any type other than a resource. 5.4.0

Переопределяется в UploaderError.

См. определение в файле error.php строка 76

Данные класса

◆ $code

$code
protected

См. определение в файле error.php строка 14

◆ $customData

$customData
protected

См. определение в файле error.php строка 21

◆ $message

$message
protected

См. определение в файле error.php строка 17