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,6 +19,7 @@
#define PDFRENDERER_H
#include "pdfpage.h"
#include "pdfexception.h"
class QPainter;
@@ -26,26 +27,6 @@ namespace pdf
{
class PDFFontCache;
enum RenderErrorType
{
Error,
NotImplemented
};
struct PDFRenderError
{
explicit PDFRenderError() = default;
explicit PDFRenderError(RenderErrorType type, QString message) :
type(type),
message(std::move(message))
{
}
RenderErrorType type = RenderErrorType::Error;
QString message;
};
/// Renders the PDF page on the painter, or onto an image.
class PDFRenderer
{