Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
core_ai\error\factory Class Reference

Static Public Member Functions

static create (int $errorcode, string $errormessage, string $errorsource='upstream')
 Create an error object based on the error code.
 

Member Function Documentation

◆ create()

static core_ai\error\factory::create ( int $errorcode,
string $errormessage,
string $errorsource = 'upstream' )
static

Create an error object based on the error code.

Parameters
int$errorcodeThe error code.
string$errormessageThe error message.
string$errorsourceThe error source.
Return values
base
Exceptions
InvalidArgumentException

The documentation for this class was generated from the following file: