30 lines
671 B
C++
30 lines
671 B
C++
#pragma once
|
|
|
|
#include <exception>
|
|
#include <pangolin/platform.h>
|
|
#include <string>
|
|
|
|
namespace pangolin {
|
|
|
|
struct PANGOLIN_EXPORT VideoException : std::exception
|
|
{
|
|
VideoException(std::string str) : desc(str) {}
|
|
VideoException(std::string str, std::string detail) {
|
|
desc = str + "\n\t" + detail;
|
|
}
|
|
~VideoException() throw() {}
|
|
const char* what() const throw() { return desc.c_str(); }
|
|
std::string desc;
|
|
};
|
|
|
|
struct PANGOLIN_EXPORT VideoExceptionNoKnownHandler : public VideoException
|
|
{
|
|
VideoExceptionNoKnownHandler(const std::string& scheme)
|
|
: VideoException("No known video handler for URI '" + scheme + "'")
|
|
{
|
|
}
|
|
};
|
|
|
|
}
|
|
|