summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorRodrigo Tobar <rtobar@icrar.org>2022-11-25 01:58:49 +0800
committerAndreas Kling <kling@serenityos.org>2022-12-10 10:49:03 +0100
commita63b93f7245c0876f7c307986a42304a7201e317 (patch)
treea15f5fcffdeaa8cc79cfc19a3b3e86dec3fd071c /Userland
parent26f8c0b76cabb483f1a1cf2e4ee031f034b9684c (diff)
downloadserenity-a63b93f7245c0876f7c307986a42304a7201e317.zip
LibPDF: Add new Error::Type for unsupported rendering features
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibPDF/Error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPDF/Error.h b/Userland/Libraries/LibPDF/Error.h
index 380ab7c620..a2e63a7582 100644
--- a/Userland/Libraries/LibPDF/Error.h
+++ b/Userland/Libraries/LibPDF/Error.h
@@ -16,6 +16,7 @@ public:
Parse,
Internal,
MalformedPDF,
+ RenderingUnsupported
};
Error(AK::Error error)
@@ -37,6 +38,9 @@ public:
case Type::MalformedPDF:
m_message = DeprecatedString::formatted("Malformed PDF file: {}", message);
break;
+ case Type::RenderingUnsupported:
+ m_message = DeprecatedString::formatted("Rendering of feature not supported: {}", message);
+ break;
}
}