|
const | ERROR_CODE = 401 |
| Error code for 401.
|
|
|
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\unauthorized::__construct |
( |
private string readonly string | $errormessage, |
|
|
private string readonly string | $errorsource = "upstream" ) |
Constructor for the error handler.
- Parameters
-
string | $errormessage | The error message. |
string | $errorsource | The error source. |
- Parameters
-
$errormessage | The error message. |
$errorsource | The error source. |
◆ get_error()
core_ai\error\base::get_error |
( |
| ) |
|
|
inherited |
◆ get_error_details()
core_ai\error\base::get_error_details |
( |
| ) |
|
|
inherited |
Get the error data and return its details.
- Return values
-
◆ get_errorcode()
core_ai\error\base::get_errorcode |
( |
| ) |
|
|
inherited |
Get the error code.
- Return values
-
◆ get_errorcode_description()
core_ai\error\base::get_errorcode_description |
( |
int | $errorcode | ) |
|
|
protectedinherited |
Get the error code description.
- Parameters
-
int | $errorcode | The error code. |
- Return values
-
string | The error code description. |
◆ get_errormessage()
core_ai\error\unauthorized::get_errormessage |
( |
| ) |
|
◆ get_errorsource()
core_ai\error\base::get_errorsource |
( |
| ) |
|
|
inherited |
Get the error message.
- Return values
-
◆ get_message_error_type()
core_ai\error\base::get_message_error_type |
( |
| ) |
|
|
protectedinherited |
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 |
|
protectedinherited |
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 |
|
protectedinherited |
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/unauthorized.php