LibPDF: Add new Error::Type for unsupported rendering features

This commit is contained in:
Rodrigo Tobar 2022-11-25 01:58:49 +08:00 committed by Andreas Kling
parent 26f8c0b76c
commit a63b93f724

View file

@ -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;
}
}