From: skodak Date: Tue, 20 Oct 2009 23:00:57 +0000 (+0000) Subject: MDL-12886 improved access exception X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c91cc5ef45df37ba5d2f8d2d38693b6bdb1b4199;p=moodle.git MDL-12886 improved access exception --- diff --git a/webservice/lib.php b/webservice/lib.php index deb06577b2..f7780925b9 100644 --- a/webservice/lib.php +++ b/webservice/lib.php @@ -709,7 +709,7 @@ abstract class webservice_base_server implements webservice_server { } $rs->close(); if (!$allowed) { - throw new invalid_parameter_exception('Access to external function not allowed'); + throw new webservice_access_exception('Access to external function not allowed'); } // we have all we need now