#pragma once #include #include #include 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 + "'") { } }; }