mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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
Reference in a new issue