00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef INCL_PLEXCEPT
00012 #define INCL_PLEXCEPT
00013
00014
00015
00016 #define PL_ERROK 0 // No error
00017 #define PL_ERRWRONG_SIGNATURE 1 // Expected file signature
00018
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
00027 #define PL_ERRINTERNAL 7 // Internal error of some sort.
00028 #define PL_ERRUNKNOWN_FILE_TYPE 8 // Couldn't recognize the
00029
00030 #define PL_ERRDIB_TOO_LARGE 9 // Maximum size for 1 bmp was
00031
00032 #define PL_ERRNO_MEMORY 10 // Out of memory.
00033 #define PL_ERREND_OF_FILE 11 // End of file reached before
00034
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
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123