|
#pragma once
// exception class
class CMPAException
{
public:
enum ErrorIDs
{
ErrOpenFile,
ErrSetPosition,
ErrReadFile,
NoVBRHeader,
IncompleteVBRHeader,
NoFrameInTolerance,
EndOfFile,
HeaderCorrupt,
FreeBitrate,
IncompatibleHeader,
CorruptLyricsTag,
NumIDs // this specifies the total number of possible IDs
};
CMPAException(ErrorIDs ErrorID, LPCTSTR szFile = NULL, LPCTSTR szFunction = NULL, bool bGetLastError=false);
// copy constructor (necessary because of LPSTR members)
CMPAException(const CMPAException& Source);
virtual ~CMPAException(void);
ErrorIDs GetErrorID() const { return m_ErrorID; };
LPCTSTR GetErrorDescription();
void ShowError();
private:
ErrorIDs m_ErrorID;
bool m_bGetLastError;
LPTSTR m_szFunction;
LPTSTR m_szFile;
LPTSTR m_szErrorMsg;
static LPCTSTR m_szErrors[CMPAException::NumIDs];
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.