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

POSIXExceptions.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: POSIXExceptions.h,v 1.3 2004/05/19 15:56:50 mmarsh Exp $
00008 //
00009 // $Log: POSIXExceptions.h,v $
00010 // Revision 1.3  2004/05/19 15:56:50  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:48  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_EXCEPTIONS_POSIXEXCEPTIONS_H__
00019 #define __CODEX_EXCEPTIONS_POSIXEXCEPTIONS_H__
00020 
00021 #include "ExceptionBase.h"
00022 
00023 namespace CODEX_Exceptions
00024 {
00026    class GetTimeOfDayException : public ExceptionBase
00027    {
00028       public :
00030          GetTimeOfDayException( const string& fname,
00031                                 int line,
00032                                 unsigned long error ) :
00033             ExceptionBase( fname, line ),
00034             m_error( error )
00035          {}
00036 
00038          virtual ~GetTimeOfDayException() {}
00039 
00041          unsigned long error() const { return m_error; }
00042 
00043          void report() const;
00044 
00045       private :
00046          unsigned long  m_error;
00047    };
00048 
00049 }
00050 
00051 #endif /* __CODEX_EXCEPTIONS_POSIXEXCEPTIONS_H__ */

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18