Skip to content
Snippets Groups Projects

OZG-7878 servicekonto: Catch runtime-exception in getPostfachAddressType

Merged Jan Zickermann requested to merge OZG-7978-Resillienteres-PostfachID-Parsing into develop
All threads resolved!
2 files
+ 63
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -102,7 +102,12 @@ public class ServiceKontoFactory {
}
int getPostfachAddressType(Map<String, Object> restResponseName) {
return getMailboxType(restResponseName);
try {
return getMailboxType(restResponseName);
} catch (RuntimeException e) {
LOG.error("Error while getting mailbox type from rest response name", e);
return POSTFACH_ADDRESS_DEFAULT;
}
}
private Integer getMailboxType(Map<String, Object> restResponseName) {
Loading