Bitrix API

Error

Table of Contents

Methods

__construct()  : mixed
Creates new Error.
__toString()  : mixed
getCode()  : int|string
Returns code of error.
getMessage()  : string
Returns message of error.

Methods

__construct()

Creates new Error.

public __construct(string $message[, int|string $code = 0 ]) : mixed
Parameters
$message : string

Message of error.

$code : int|string = 0

Code of error.

__toString()

public __toString() : mixed

getCode()

Returns code of error.

public getCode() : int|string
Return values
int|string

getMessage()

Returns message of error.

public getMessage() : string
Return values
string

        
On this page

Search results