Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

plexcept.h

Go to the documentation of this file.
00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: plexcept.h,v 1.1 2004/05/21 21:02:52 maxx Exp $
00005 |
00006 |      Copyright (c) 1996-2002 Ulrich von Zadow
00007 |
00008 \--------------------------------------------------------------------
00009 */
00010 
00011 #ifndef INCL_PLEXCEPT
00012 #define INCL_PLEXCEPT
00013 
00014 
00015 // Error codes
00016 #define PL_ERROK              0            // No error
00017 #define PL_ERRWRONG_SIGNATURE 1            // Expected file signature
00018                                            // not found.
00019 #define PL_ERRFORMAT_UNKNOWN  2            // Sanity check failed.
00020 
00021 #define PL_ERRPATH_NOT_FOUND  3            // <--
00022 #define PL_ERRFILE_NOT_FOUND  4            // <-- Problems with the file
00023 #define PL_ERRACCESS_DENIED   5            // <-- system.
00024 
00025 #define PL_ERRFORMAT_NOT_SUPPORTED 6       // Known but unsupported
00026                                            // format.
00027 #define PL_ERRINTERNAL        7            // Internal error of some sort.
00028 #define PL_ERRUNKNOWN_FILE_TYPE    8       // Couldn't recognize the
00029                                            // file type.
00030 #define PL_ERRDIB_TOO_LARGE   9            // Maximum size for 1 bmp was
00031                                            // exceeded.
00032 #define PL_ERRNO_MEMORY      10            // Out of memory.
00033 #define PL_ERREND_OF_FILE    11            // End of file reached before
00034                                            // end of image.
00035 
00042 class PLTextException : public PLObject
00043 {
00044 
00045 public:
00047   PLTextException
00048     ( int Code,
00049       const char * pszErr
00050     );
00051 
00053   PLTextException
00054     ( const PLTextException& ex
00055     );
00056 
00058   virtual ~PLTextException
00059     ();
00060 
00085   virtual int GetCode
00086     ()
00087     const;
00088 
00089 
00092   virtual operator const char *
00093     ()
00094     const;
00095 
00096 private:
00097   int     m_Code;
00098   char *  m_pszErr;
00099 };
00100 
00101 #endif
00102 /*
00103 /--------------------------------------------------------------------
00104 |
00105 |      $Log: plexcept.h,v $
00106 |      Revision 1.1  2004/05/21 21:02:52  maxx
00107 |      Initial Version of vuVolume, moderatly changed to make it compile on my windows and linux machine.
00108 |
00109 |      Revision 1.1  2002/11/13 01:58:21  mspindle
00110 |      *** empty log message ***
00111 |
00112 |      Revision 1.2  2002/03/03 16:29:55  uzadow
00113 |      Re-added BPPWanted.
00114 |
00115 |      Revision 1.1  2001/09/16 19:03:22  uzadow
00116 |      Added global name prefix PL, changed most filenames.
00117 |
00118 |      Revision 1.4  2000/01/17 23:38:07  Ulrich von Zadow
00119 |      MFC removal aftermath.
00120 |
00121 |
00122 \--------------------------------------------------------------------
00123 */

Generated on Wed Dec 15 21:20:30 2004 for vuVolume by  doxygen 1.3.9.1