. /** * Web service parameter exception class. * * @deprecated since Moodle 2.2 - use moodle exception instead * This exception must be thrown to the web service client when a web service parameter is invalid * The error string is gotten from webservice.php */ class webservice_parameter_exception extends moodle_exception { /** * Constructor * @param string $errorcode The name of the string from webservice.php to print * @param string $a The name of the parameter * @param string $debuginfo Optional information to aid debugging */ function __construct($errorcode=null, $a = '', $debuginfo = null) { parent::__construct($errorcode, 'webservice', '', $a, $debuginfo); } }