This repository has been archived on 2024-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ar_basalt/thirdparty/Pangolin/include/pangolin/video/video_exception.h
2022-04-05 11:42:28 +03:00

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 + "'")
{
}
};
}