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

Exception.cpp

Go to the documentation of this file.
00001 // -*- C++ -*- $Id: Exception.cpp,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00002 
00003 #include "ACEXML/common/Exception.h"
00004 #include "ace/Log_Msg.h"
00005 #include "ace/ACE.h"
00006 
00007 static const ACEXML_Char ACEXML_Exception_name[] = {
00008   'A', 'C', 'E', 'X', 'M', 'L',
00009   '_', 'E', 'x', 'c', 'e', 'p',
00010   't', 'i', 'o', 'n', 0};
00011 const ACEXML_Char *ACEXML_Exception::exception_name_ = ACEXML_Exception_name;
00012 
00013 static const ACEXML_Char ACEXML_Exception_null [] = {0};
00014 const ACEXML_Char *ACEXML_Exception::null_ = ACEXML_Exception_null;
00015 
00016 #if !defined (__ACEXML_INLINE__)
00017 # include "ACEXML/common/Exception.i"
00018 #endif /* __ACEXML_INLINE__ */
00019 
00020 ACEXML_Exception::ACEXML_Exception (void)
00021 {
00022 }
00023 
00024 ACEXML_Exception::ACEXML_Exception (const ACEXML_Exception &)
00025 {
00026 }
00027 
00028 
00029 ACEXML_Exception::~ACEXML_Exception (void)
00030 {
00031 
00032 }
00033 
00034 int
00035 ACEXML_Exception::is_a (const ACEXML_Char *name)
00036 {
00037   if (name == ACEXML_Exception::exception_name_
00038       || ACE_OS::strcmp (ACEXML_Exception::exception_name_,
00039                          name) == 0)
00040     return 1;
00041 
00042   return 0;
00043 }
00044 
00045 void
00046 ACEXML_Exception::print (void)
00047 {
00048   ACE_DEBUG ((LM_ERROR,
00049               ACE_TEXT ("ACEXML: (%P|%t) EXCEPTION : %s\n"),
00050                         this->exception_name_));
00051 }

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