From 9753418656d018965afcf24c352cfe2aab0be8df Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 19 Sep 2010 15:45:01 +0000 Subject: [PATCH] .XmlRpc: ThrowXmlRpcError without code overload git-svn-id: svn://ultimatepp.org/upp/trunk@2708 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/XmlRpc/Server.cpp | 5 +++++ uppsrc/XmlRpc/XmlRpc.h | 1 + 2 files changed, 6 insertions(+) diff --git a/uppsrc/XmlRpc/Server.cpp b/uppsrc/XmlRpc/Server.cpp index 2a8b3f4ef..80ab02d9c 100644 --- a/uppsrc/XmlRpc/Server.cpp +++ b/uppsrc/XmlRpc/Server.cpp @@ -38,6 +38,11 @@ void ThrowXmlRpcError(int code, const char *s) throw e; } +void ThrowXmlRpcError(const char *s) +{ + ThrowXmlRpcError(-1, s); +} + String XmlRpcExecute(const String& request, const char *group, const char *peeraddr) { XmlParser p(request); diff --git a/uppsrc/XmlRpc/XmlRpc.h b/uppsrc/XmlRpc/XmlRpc.h index 8cc68dfb2..0a2882dea 100644 --- a/uppsrc/XmlRpc/XmlRpc.h +++ b/uppsrc/XmlRpc/XmlRpc.h @@ -253,6 +253,7 @@ INITBLOCK { Register(#x, xmlrpc##x, group); } \ void xmlrpc##x(XmlRpcData& rpc) void ThrowXmlRpcError(int code, const char *s); +void ThrowXmlRpcError(const char *s); class XmlRpcCall { bool shorted;