Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
XMLParsingException.cpp
Package: XMLGUI_src.zip [view]
Upload User: kj0090
Upload Date: 2007-03-02
Package Size: 39k
Code Size: 3k
Category:
xml-soap-webservice
Development Platform:
C/C++
- /***********************************************************************
- *
- * This module is part of the XMLGUI system
- *
- * File name: XMLParsingException.cpp
- *
- * Creation date: [15 AUGUST 2002]
- *
- * Author(s): [Kolosenko Ruslan]
- *
- * Description: Implements the class CXMLParsingException
- *
- **********************************************************************/
- #include "stdafx.h"
- #include "XMLParsingException.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- /**************************************************************************
- * Function : CXMLParsingException::CXMLParsingException
- * Description : Constructs empty CXMLParsingException object
- ***************************************************************************/
- CXMLParsingException::CXMLParsingException():m_Error(S_OK)
- {
- m_szDescription = "";
- }
- /**************************************************************************
- * Function : CXMLParsingException::CXMLParsingException
- * Description : Constructs CXMLParsingException object from COM operation
- * : result value
- * Arguments : hr - descriptor of COM operation result
- ***************************************************************************/
- CXMLParsingException::CXMLParsingException(HRESULT hr):m_Error(hr)
- {
- m_szDescription = "";
- }
- /**************************************************************************
- * Function : CXMLParsingException::CXMLParsingException
- * Description : Constructs CXMLParsingException object from string representation
- * : of exception cause
- * Arguments : szCause - pointer to a string containing textual description
- * : of the exception cause
- ***************************************************************************/
- CXMLParsingException::CXMLParsingException(LPCTSTR szCause):m_Error(S_OK)
- {
- m_szDescription = szCause;
- }
- /**************************************************************************
- * Function : CXMLParsingException::~CXMLParsingException
- * Description : Destructor
- ***************************************************************************/
- CXMLParsingException::~CXMLParsingException()
- {
- }
- /**************************************************************************
- * Function : CXMLParsingException::GetDescription
- * Description : Returns textual description of the exception cause
- * Return value : pointer to a string with description of the exception cause
- ***************************************************************************/
- LPCTSTR CXMLParsingException::GetDescription() const
- {
- if ( !m_szDescription.IsEmpty() )
- {
- // if textual description of the exception cause is present -
- // return it
- return m_szDescription;
- }
- else
- {
- // otherwise obtain description from the COM error holder
- return m_Error.ErrorMessage();
- }
- }