Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

SAXExceptions.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    SAXExceptions.h
00006  *
00007  *  $Id: SAXExceptions.h,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00008  *
00009  *  @author Nanbor Wang <nanbor@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef _ACEXML_SAXEXCEPTIONS_H_
00014 #define _ACEXML_SAXEXCEPTIONS_H_
00015 
00016 #include "ace/pre.h"
00017 #include "ACEXML/common/ACEXML_Export.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 #pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include "ACEXML/common/Exception.h"
00024 
00025 /**
00026  * @class ACEXML_SAXException SAXExceptions.h "ACEXML/common/SAXExceptions.h"
00027  *
00028  * @brief ACEXML_SAXException
00029  *
00030  * ACEXML_SAXException is the mother of all SAX related exceptions.
00031  */
00032 class ACEXML_Export ACEXML_SAXException : public ACEXML_Exception
00033 {
00034 public:
00035   /// Default constructor.
00036   ACEXML_SAXException (void);
00037 
00038   /// Constructor initializing the exception message.
00039   ACEXML_SAXException (const ACEXML_Char *msg);
00040 
00041   /// Assignment operator
00042   ACEXML_SAXException& operator= (const ACEXML_SAXException& src);
00043 
00044   /// Copy constructor.
00045   ACEXML_SAXException (const ACEXML_SAXException &ex);
00046 
00047   /// Destructor.
00048   virtual ~ACEXML_SAXException (void);
00049 
00050   /// Throw the exception.
00051   virtual void _raise (void);
00052 
00053   /// Static narrow operation.
00054   static ACEXML_SAXException* _downcast (ACEXML_Exception* ex);
00055 
00056   /// Return the name of the exception.
00057   virtual const ACEXML_Char *id (void) const;
00058 
00059   /// Return the extra message accompanying the exception.
00060   const ACEXML_Char *message (void);
00061 
00062   virtual ACEXML_Exception *duplicate (void) const;
00063 
00064   virtual int is_a (const ACEXML_Char *name);
00065 
00066   virtual void print (void);
00067 
00068 protected:
00069   static const ACEXML_Char *exception_name_;
00070 
00071   /// A message providing more information about the exception being thrown.
00072   ACEXML_Char *message_;
00073 };
00074 
00075 /**
00076  * @class ACEXML_SAXNotSupportedException SAXExceptions.h "ACEXML/common/SAXExceptions.h"
00077  *
00078  * @brief ACEXML_SAXNotSupportedException
00079  */
00080 class ACEXML_Export ACEXML_SAXNotSupportedException
00081   : public ACEXML_SAXException
00082 {
00083 public:
00084   /// Default constructor.
00085   ACEXML_SAXNotSupportedException (void);
00086 
00087   /// Copy constructor.
00088   ACEXML_SAXNotSupportedException (const ACEXML_SAXNotSupportedException &ex);
00089 
00090   /// Constructor which accepts an informational message
00091   ACEXML_SAXNotSupportedException (const ACEXML_Char* msg);
00092 
00093   /// Destructor.
00094   virtual ~ACEXML_SAXNotSupportedException (void);
00095 
00096   /// Throw the exception.
00097   virtual void _raise (void);
00098 
00099   /// Static narrow operation.
00100   static ACEXML_SAXNotSupportedException* _downcast (ACEXML_Exception* ex);
00101 
00102   virtual const ACEXML_Char *id (void) const;
00103 
00104   virtual ACEXML_Exception *duplicate (void) const;
00105 
00106   virtual int is_a (const ACEXML_Char *name);
00107 
00108   virtual void print (void);
00109 
00110 protected:
00111   static const ACEXML_Char *exception_name_;
00112 };
00113 
00114 /**
00115  * @class ACEXML_SAXNotRecognizedException SAXExceptions.h "ACEXML/common/SAXExceptions.h"
00116  *
00117  * @brief ACEXML_SAXNotRecognizedException
00118  */
00119 class ACEXML_Export ACEXML_SAXNotRecognizedException
00120   : public ACEXML_SAXException
00121 {
00122 public:
00123   /// Default constructor.
00124   ACEXML_SAXNotRecognizedException (void);
00125 
00126   /// Constructor with an initializing exception message.
00127   ACEXML_SAXNotRecognizedException (const ACEXML_Char *msg);
00128 
00129   /// Copy constructor.
00130   ACEXML_SAXNotRecognizedException (const ACEXML_SAXNotRecognizedException &ex);
00131   /// Destructor.
00132   virtual ~ACEXML_SAXNotRecognizedException (void);
00133 
00134   /// Throw the exception.
00135   virtual void _raise (void);
00136 
00137   /// Static narrow operation.
00138   static ACEXML_SAXNotRecognizedException* _downcast (ACEXML_Exception* ex);
00139 
00140   virtual const ACEXML_Char *id (void) const;
00141 
00142   virtual ACEXML_Exception *duplicate (void) const;
00143 
00144   virtual int is_a (const ACEXML_Char *name);
00145 
00146   virtual void print (void);
00147 
00148 protected:
00149   static const ACEXML_Char *exception_name_;
00150 };
00151 
00152 /**
00153  * @class ACEXML_SAXParseException SAXExceptions.h "ACEXML/common/SAXExceptions.h"
00154  *
00155  * @brief ACEXML_SAXParseException
00156  *
00157  */
00158 class ACEXML_Export ACEXML_SAXParseException
00159   : public ACEXML_SAXException
00160 {
00161 public:
00162   /// Default constructor.
00163   ACEXML_SAXParseException (void);
00164 
00165   /// Constructor with an initializing exception message.
00166   ACEXML_SAXParseException (const ACEXML_Char *msg);
00167 
00168   /// Copy constructor.
00169   ACEXML_SAXParseException (const ACEXML_SAXParseException &ex);
00170 
00171   /// Destructor.
00172   virtual ~ACEXML_SAXParseException (void);
00173 
00174   /// Throw the exception.
00175   virtual void _raise (void);
00176 
00177   /// Static narrow operation.
00178   static ACEXML_SAXParseException* _downcast (ACEXML_Exception* ex);
00179 
00180   virtual const ACEXML_Char *id (void) const;
00181 
00182   virtual ACEXML_Exception *duplicate (void) const;
00183 
00184   virtual int is_a (const ACEXML_Char *name);
00185 
00186   virtual void print (void);
00187 
00188 protected:
00189   static const ACEXML_Char *exception_name_;
00190 };
00191 
00192 #if defined (__ACEXML_INLINE__)
00193 # include "ACEXML/common/SAXExceptions.i"
00194 #endif /* __ACEXML_INLINE__ */
00195 
00196 #include "ace/post.h"
00197 
00198 #endif /* _ACEXML_SAXEXCEPTIONS_H_ */

Generated on Mon Jun 16 13:23:25 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002