1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Error
Граф наследования:Error:
Error Error AnchorError BotError CallError ChatError ExternalError ParamError CalendarError FileError TaskError UrlError UserError Error ImportError CopilotError Error ReminderError MessagesAutoDeleteError MessageError ParamError ReactionError NotifyError RecentError RestError MessengerError PresetError SettingsError SyncError Error EntityError ValidationError Error Error Warning Message Error JobNotCompletedError EntityError UploaderError

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

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

Открытые статические члены

static createFromThrowable (Throwable $exception)

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

 $code
 $message
 $customData

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

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

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

◆ __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 строка 34

Методы

◆ __toString()

__toString ( )

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

◆ __unserialize()

__unserialize ( array $data)

Disables deserialization.

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

◆ createFromThrowable()

createFromThrowable ( Throwable $exception)
static
Аргументы
Throwable$exception
Возвращает
static

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

◆ getCode()

getCode ( )

Returns the code of the error.

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

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

◆ getCustomData()

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

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

◆ getLocalizableMessage()

getLocalizableMessage ( )

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

◆ getMessage()

getMessage ( )

Returns the message of the error.

Возвращает
string

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

◆ 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

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

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

Поля

◆ $code

$code
protected

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

◆ $customData

$customData
protected

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

◆ $message

$message
protected

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


Объявления и описания членов класса находятся в файле: