Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
core_ai\error\notfound Class Reference
Inheritance diagram for core_ai\error\notfound:
core_ai\error\base

Public Member Functions

 __construct (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.
 

Public Attributes

const ERROR_CODE = 404
 Error code for rate limiting.
 

Protected Member Functions

 get_errorcode_description (int $errorcode)
 Get the error code description.
 
 get_message_error_type ()
 Get the message error type based on the debug configuration.
 

Protected Attributes

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.
 

Constructor & Destructor Documentation

◆ __construct()

core_ai\error\notfound::__construct ( private string readonly string $errormessage,
private string readonly string $errorsource = "upstream" )

Constructor for the error handler.

Parameters
string$errormessageThe error message.
string$errorsourceThe error source.
Parameters
$errormessageThe error message.
$errorsourceThe error source.

Member Function Documentation

◆ get_error()

core_ai\error\base::get_error ( )
inherited

Get the error name.

Return values
stringThe error source.

Reimplemented in core_ai\error\ratelimit.

◆ get_error_details()

core_ai\error\base::get_error_details ( )
inherited

Get the error data and return its details.

Return values
arrayThe error details.

◆ get_errorcode()

core_ai\error\base::get_errorcode ( )
inherited

Get the error code.

Return values
intThe error code.

◆ get_errorcode_description()

core_ai\error\base::get_errorcode_description ( int $errorcode)
protectedinherited

Get the error code description.

Parameters
int$errorcodeThe error code.
Return values
stringThe error code description.

◆ get_errormessage()

core_ai\error\notfound::get_errormessage ( )

Get the error message.

Return values
stringThe error message.

Reimplemented from core_ai\error\base.

◆ get_errorsource()

core_ai\error\base::get_errorsource ( )
inherited

Get the error message.

Return values
stringThe error message.

◆ 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
intThe message error type.

Member Data Documentation

◆ 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: