diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-06-23 18:54:46 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-06-23 18:54:46 +0200 |
commit | 02b9e16833acbdaa820bd3b8b64d652a41a8ff58 (patch) | |
tree | 092b9dd423c6c52812f3978770b87417abe69b9b /src/Common/Request.cpp | |
parent | 37c8bed9a5f2ae9141c461202fec5baa6fa21389 (diff) | |
download | mad-02b9e16833acbdaa820bd3b8b64d652a41a8ff58.tar mad-02b9e16833acbdaa820bd3b8b64d652a41a8ff58.zip |
XmlPacket-Klasse ?berarbeitet
Diffstat (limited to 'src/Common/Request.cpp')
-rw-r--r-- | src/Common/Request.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Common/Request.cpp b/src/Common/Request.cpp index 9aafd7f..9c2df5f 100644 --- a/src/Common/Request.cpp +++ b/src/Common/Request.cpp @@ -24,7 +24,8 @@ namespace Common { void Request::handlePacket(boost::shared_ptr<const XmlPacket> packet) { if(packet->getType() == "Error") { - signalFinished(Core::Exception((*packet)["Where"], (*packet)["ErrorCode"], (*packet)["SubCode"], (*packet)["SubSubCode"])); + signalFinished(Core::Exception(packet->get<const std::string&>("Where"), packet->get<Core::Exception::ErrorCode>("ErrorCode"), + packet->get<long>("SubCode"), packet->get<long>("SubSubCode"))); return; } else if(packet->getType() != "OK") { |