Skip to content

Commit

Permalink
Merge pull request #339 from mild-blue/wrap-exceptions
Browse files Browse the repository at this point in the history
Another exceptions wrapper
  • Loading branch information
LukasForst authored Jun 18, 2021
2 parents 2a42e88 + 07d547b commit 9d8f739
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ class IsinService(
logger.info("Exporting vaccination to ISIN was successful for patient with ISIN ID ${patient.isinId}.")
true
}.getOrElse {
logger.error(it) {
logger.warn { "Data retrieval from ISIN - failure." }
val wrappingException =
Exception("An exception ${it.javaClass.canonicalName} was thrown! - ${it.message}\n${it.stackTraceToString()}")
logger.error(wrappingException) {
"Exporting vaccination to ISIN failed for patient with ISIN ID ${patient.isinId}"
}
false
Expand Down

0 comments on commit 9d8f739

Please sign in to comment.