Commit e68895e1 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Catch saxon api exceptions.

parent 4a4252b9
Pipeline #16178 passed with stages
in 6 minutes and 36 seconds
......@@ -22,6 +22,7 @@ import ch.memobase.kafka.utils.ConfigJoiner
import ch.memobase.kafka.utils.models.ImportService
import ch.memobase.kafka.utils.models.JoinedValues
import com.beust.klaxon.Klaxon
import net.sf.saxon.s9api.SaxonApiException
import org.apache.kafka.common.serialization.Serdes
import org.apache.kafka.streams.KeyValue
import org.apache.kafka.streams.StreamsBuilder
......@@ -119,7 +120,6 @@ class KafkaTopology(private val settings: SettingsLoader) {
)
)
)
} catch (ex: MissingIdentifierException) {
log.error(ex.message)
KeyValue(
......@@ -131,7 +131,17 @@ class KafkaTopology(private val settings: SettingsLoader) {
)
)
)
} catch (ex: SaxonApiException) {
log.error(ex.message)
KeyValue(
key, Pair(
null, Report(
key,
ReportStatus.failure,
ex.localizedMessage
)
)
)
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment