Class: DBWorkerException

Class for DBWorkerException in the SmartFactory library.

Extends

Authors

Oleg Schildt

Package

Source code

 

Methods
public

Constructor.


Method: DBWorkerException::__construct()

public function __construct(string $message, string $error_code, string $error_element = "", array $error_details = [], string $technical_info = "" ) : ;

Constructor.

Parameters

Name Pass type Value type Default value Description
$message by value string

Error message.

$error_code by value string

Error code.

Since the error texts can be localized, the unique code of the error might be important fo using in comparison.

$error_element by value string ""

Error element.

$error_details by value array []

The details might be useful if the message translations are provided on the client, not on the server, and the message should contain some details that may vary from case to case. In that case, the servers return the message id instead of final text and the details, the client uses the message id, gets the final translated text and substitutes the parameters through the details.

$technical_info by value string ""

Additional technical information. It can be used if it is a programming error and displayed only if the debug mode is active.

Overrides

Authors

Oleg Schildt

Source code