|
| __construct (private int readonly int $errorcode, private string readonly string $errormessage, private string readonly string $errorsource="upstream",) |
| Constructor for the error handler.
|
|
| get_error () |
| Get the error name.
|
|
| get_error_details () |
| Get the error data and return its details.
|
|
| get_errorcode () |
| Get the error code.
|
|
| get_errormessage () |
| Get the error message.
|
|
| get_errorsource () |
| Get the error message.
|
|
|
int int | $messagetype |
| The type of error message.
|
|
string const | ERROR_SOURCE_UPSTREAM = "upstream" |
| Error code for upstream errors.
|
|
int const | ERROR_TYPE_DETAILED = 1 |
| Error type for more.
|
|
int const | ERROR_TYPE_MINIMAL = 0 |
| Error type for less.
|
|
◆ __construct()
core_ai\error\base::__construct |
( |
private int readonly int | $errorcode, |
|
|
private string readonly string | $errormessage, |
|
|
private string readonly string | $errorsource = "upstream" ) |
Constructor for the error handler.
- Parameters
-
int | $errorcode | The error code. |
string | $errormessage | The error message. |
string | $errorsource | The error source. |
- Parameters
-
$errorcode | The error code. |
$errormessage | The error message. |
$errorsource | The error source. |
◆ get_error()
core_ai\error\base::get_error |
( |
| ) |
|
◆ get_error_details()
core_ai\error\base::get_error_details |
( |
| ) |
|
Get the error data and return its details.
- Return values
-
◆ get_errorcode()
core_ai\error\base::get_errorcode |
( |
| ) |
|
Get the error code.
- Return values
-
◆ get_errorcode_description()
core_ai\error\base::get_errorcode_description |
( |
int | $errorcode | ) |
|
|
protected |
Get the error code description.
- Parameters
-
int | $errorcode | The error code. |
- Return values
-
string | The error code description. |
◆ get_errormessage()
core_ai\error\base::get_errormessage |
( |
| ) |
|
◆ get_errorsource()
core_ai\error\base::get_errorsource |
( |
| ) |
|
Get the error message.
- Return values
-
◆ get_message_error_type()
core_ai\error\base::get_message_error_type |
( |
| ) |
|
|
protected |
Get the message error type based on the debug configuration.
- Return values
-
int | The message error type. |
◆ ERROR_TYPE_DETAILED
int const core_ai\error\base::ERROR_TYPE_DETAILED = 1 |
|
protected |
Error type for more.
It means the LMS debug level is >= "ALL".
◆ ERROR_TYPE_MINIMAL
int const core_ai\error\base::ERROR_TYPE_MINIMAL = 0 |
|
protected |
Error type for less.
It means the LMS debug level is < "ALL"
The documentation for this class was generated from the following file:
- ai/classes/error/base.php