mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
LibPDF: Add new Error::Type for unsupported rendering features
This commit is contained in:
parent
26f8c0b76c
commit
a63b93f724
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue