Commit 811b3d19 authored by Donal McMullan's avatar Donal McMullan
Browse files

New error class for XMLRPC

parent 5c99086a
......@@ -470,6 +470,11 @@ class MaharaException extends Exception {
exit;
}
if (defined('XMLRPC')) { // it's preferable to throw an XmlrpcServerException
echo xmlrpc_error($this->render_exception(), $this->getCode());
exit;
}
$outputtitle = $this->get_string('title');
$outputmessage = $this->render_exception();
$message = strip_tags($outputmessage);
......@@ -627,6 +632,11 @@ class ParameterException extends UserException {
}
}
/**
* Xmlrpc Server exception - must output well formed XMLRPC error to the client
*/
class XmlrpcServerException extends MaharaException implements MaharaThrowable {}
/**
* An exception generated when e-mail can't be sent
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment