mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-15 00:31:57 +00:00
add xmlrpc-c 1.03.14 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#include <string>
|
||||
|
||||
#include "xmlrpc-c/girerr.hpp"
|
||||
using girerr::error;
|
||||
#include "xmlrpc-c/base.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace xmlrpc_c {
|
||||
|
||||
fault::fault() : valid(false) {};
|
||||
|
||||
fault::fault(string const _description,
|
||||
xmlrpc_c::fault::code_t const _code
|
||||
) :
|
||||
valid(true),
|
||||
code(_code),
|
||||
description(_description)
|
||||
{}
|
||||
|
||||
xmlrpc_c::fault::code_t
|
||||
fault::getCode() const {
|
||||
if (!valid)
|
||||
throw(error("Attempt to access placeholder xmlrpc_c::fault object"));
|
||||
return this->code;
|
||||
}
|
||||
|
||||
string
|
||||
fault::getDescription() const {
|
||||
if (!valid)
|
||||
throw(error("Attempt to access placeholder xmlrpc_c::fault object"));
|
||||
return this->description;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user