web service MDL-21351 add a bit more information to the exception message when function implementation is missing

This commit is contained in:
jerome mouneyrac
2010-04-22 01:51:24 +00:00
parent dc07683108
commit 203fda8a4d
+1 -1
View File
@@ -53,7 +53,7 @@ function external_function_info($function, $strictness=MUST_EXIST) {
// make sure the implementaion class is ok
if (!method_exists($function->classname, $function->methodname)) {
throw new coding_exception('Missing implementation method');
throw new coding_exception('Missing implementation method of '.$function->classname.'::'.$function->methodname);
}
if (!method_exists($function->classname, $function->parameters_method)) {
throw new coding_exception('Missing parameters description');