diff --git a/Modules.Interfaces/ZUGFeRDInterface.vb b/Modules.Interfaces/ZUGFeRDInterface.vb index 429f64cb..fa0df194 100644 --- a/Modules.Interfaces/ZUGFeRDInterface.vb +++ b/Modules.Interfaces/ZUGFeRDInterface.vb @@ -141,6 +141,10 @@ Public Class ZUGFeRDInterface Try Dim oResults = oAttachmentExtractor.Extract(Path, oAllowedExtensions) Return HandleAttachments(oResults) + Catch ex As ZUGFeRDExecption + ' Don't log ZUGFeRD Exceptions here, they should be handled by the calling code. + ' It also produces misleading error messages when checking if an attachment is a zugferd file. + Throw ex Catch ex As Exception _logger.Error(ex) Throw ex @@ -178,6 +182,10 @@ Public Class ZUGFeRDInterface End Using Return oXmlDocument + Catch ex As ZUGFeRDExecption + ' Don't log ZUGFeRD Exceptions here, they should be handled by the calling code. + ' It also produces misleading error messages when checking if an attachment is a zugferd file. + Throw ex Catch ex As Exception _logger.Error(ex) Throw ex