.XmlRpc: ThrowXmlRpcError without code overload

git-svn-id: svn://ultimatepp.org/upp/trunk@2708 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-09-19 15:45:01 +00:00
parent 31f23337e9
commit 9753418656
2 changed files with 6 additions and 0 deletions

View file

@ -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);

View file

@ -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;