CMS 3D CMS Logo

ZError.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_Z_ERROR_H
00002 # define CLASSLIB_Z_ERROR_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "classlib/sysapi/system.h"
00007 # include "classlib/utils/Error.h"
00008 
00009 namespace lat {
00010 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00011 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00012 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00013 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00014 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00015 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00016 
00018 class ZError : public Error
00019 {
00020 public:
00021     ZError (int code, const char *message = 0);
00022     // implicit destructor
00023     // implicit copy constructor
00024     // implicit assignment operator
00025 
00026     virtual int                 code (void) const;
00027     virtual const std::string & message (void) const;
00028     virtual std::string         explainSelf (void) const;
00029     virtual Error *             clone (void) const;
00030     virtual void                rethrow (void);
00031 
00032 private:
00033     int                         m_code;         //< ZLIB error code
00034     std::string                 m_message;      //< ZLIB error message
00035 };
00036 
00037 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00038 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00039 
00040 } // namespace lat
00041 #endif // CLASSLIB_Z_ERROR_H

Generated on Tue Jun 9 17:39:00 2009 for CMSSW by  doxygen 1.5.4