Exception refactoring

This commit is contained in:
Jakub Melka
2019-04-29 17:03:19 +02:00
parent 7e953b60e7
commit 11cb52921e
17 changed files with 96 additions and 59 deletions

View File

@ -19,8 +19,8 @@
#define PDFPAGECONTENTPROCESSOR_H
#include "pdfrenderer.h"
#include "pdfparser.h"
#include "pdfcolorspaces.h"
#include "pdfparser.h"
#include "pdffont.h"
#include "pdfutils.h"
@ -36,21 +36,6 @@ namespace pdf
{
static constexpr const char* PDF_RESOURCE_EXTGSTATE = "ExtGState";
class PDFRendererException : public std::exception
{
public:
explicit PDFRendererException(RenderErrorType type, QString message) :
m_error(type, std::move(message))
{
}
const PDFRenderError& getError() const { return m_error; }
private:
PDFRenderError m_error;
};
/// Process the contents of the page.
class PDFPageContentProcessor
{