This commit is contained in:
PodmogilnyjIvan
2021-12-03 03:34:31 -08:00
commit ff4acf84be
542 changed files with 136810 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#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 + "'")
{
}
};
}