Skip to content

Conversation

rfc2822
Copy link
Member

@rfc2822 rfc2822 commented Aug 13, 2025

DavException is a high-level exception for WebDAV protocol errors. It should not be thrown for unrelated things like when an XML parser couldn't be created (even if this happened in WebDAV context).

The appropriate exception seems to be XmlPullParserException (because we don't use SAX; for that case there would be FactoryConfigurationError and ParserConfigurationException).

@rfc2822 rfc2822 requested review from ArnyminerZ and sunkup August 13, 2025 08:52
@rfc2822 rfc2822 self-assigned this Aug 13, 2025
@rfc2822 rfc2822 added the refactoring Internal improvement of existing functions label Aug 13, 2025
@rfc2822 rfc2822 marked this pull request as ready for review August 13, 2025 08:52
Copy link
Member

@ArnyminerZ ArnyminerZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch on those ones.

@rfc2822 rfc2822 merged commit 02fe1a9 into main Aug 13, 2025
5 checks passed
@rfc2822 rfc2822 deleted the dont-use-davexception-for-parser-creation branch August 13, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Internal improvement of existing functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants