#ifndef _GATS_CMARKUP_EXCEPTION_H_ #define _GATS_CMARKUP_EXCEPTION_H_ /** @file GATS_CMarkup_Exception.h @brief Header for the GATS_CMarkup_Exception class and derivatives. @date $Date @version $Rev$ @author - Lance Deaver @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @see GATS_CMarkup_Exception @bug None known $Id$ */ #include "GATS_Exception.h" class GATS_CMarkup_Exception : public GATS_Exception { public: /** * @brief GATS_CMarkup_Exception copy constructor. */ GATS_CMarkup_Exception(const GATS_CMarkup_Exception& e) throw() : GATS_Exception(e) {} /** * @brief Destroy the GATS_CMarkup_Exception object. */ virtual ~GATS_CMarkup_Exception() throw() {} /** * @brief GATS_CMarkup_Exception assignment operator. */ GATS_CMarkup_Exception& operator=(const GATS_CMarkup_Exception& rhs) throw(); protected: /** * @brief Construct a GATS_CMarkup_Exception object */ GATS_CMarkup_Exception(const char* w, const char* filename, const unsigned int linenumber) throw() : GATS_Exception(w,filename,linenumber) {} }; // The different types of GATS_CMarkup_Exception objects /** * The IllFormedXMLFile object is thrown if the XML file has some * incorrect syntax such as a missing closing tag. */ class IllFormedXMLFile : public GATS_CMarkup_Exception { public: /** * @brief IllFormedXMLFile Constructor */ IllFormedXMLFile(const std::string& msg, const char* filename, const unsigned int linenumber) : GATS_CMarkup_Exception(msg.c_str(),filename,linenumber) {} }; #endif //_GATS_CMARKUP_EXCEPTION_H_