2 * File: SyncException.cpp
4 * Author: Lukas Zeller (luz@synthesis.ch)
7 * SySync Exception classes
9 * Copyright (c) 2001-2009 by Synthesis AG (www.synthesis.ch)
11 * 2001-05-28 : luz : created
16 #include "prefix_file.h"
17 #include "sync_include.h"
19 #include "syncexception.h"
23 using namespace sysync;
27 TSyncException::TSyncException(const char *aMsg1, localstatus aLocalStatus) NOTHROW
30 fLocalStatus = aLocalStatus;
31 } // TSyncException::TSyncException
34 TSyncException::TSyncException(localstatus aLocalStatus) NOTHROW
36 fLocalStatus = aLocalStatus;
37 fMessage = "Exception due to local error status";
38 } // TSyncException::TSyncException
41 TSyncException::~TSyncException() NOTHROW
43 } // TSyncException::~TSyncException
46 const char *TSyncException::what() const NOTHROW
48 return fMessage.c_str();
49 } // TSyncException::getMessage
52 void TSyncException::setMsg(const char *p)
55 } // TSyncException::setMsg
60 TSmlException::TSmlException(const char *aMsg, Ret_t aSmlError) NOTHROW
67 snprintf(msg,msgsiz,"SyncML Toolkit error=0x%04hX, %s",(uInt16)fSmlError,aMsg);
69 } // TSmlException::TSmlException