You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
//----------------------------------------------------------------------------------------
|
|
#ifndef aviexceptionH
|
|
#define aviexceptionH aviexceptionH
|
|
//----------------------------------------------------------------------------------------
|
|
#include <string>
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
class AVIException
|
|
//----------------------------------------------------------------------------------------
|
|
{
|
|
public:
|
|
virtual const char* what() const = 0;
|
|
};
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
class AEUnsupportedCodec : public AVIException
|
|
//----------------------------------------------------------------------------------------
|
|
{
|
|
public:
|
|
const char* what() const
|
|
{
|
|
return "Unsupported codec";
|
|
}
|
|
};
|
|
|
|
//----------------------------------------------------------------------------------------
|
|
class AVIWrapperException : public AVIException
|
|
//----------------------------------------------------------------------------------------
|
|
{
|
|
std::string m_errorString;
|
|
public:
|
|
AVIWrapperException( const char* pError ) : m_errorString( pError ) {}
|
|
const char* what() const
|
|
{
|
|
return m_errorString.c_str();
|
|
}
|
|
};
|
|
|
|
#endif // aviexceptionH
|