Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
XML Data Transform
Commits
e68895e1
Commit
e68895e1
authored
Oct 27, 2020
by
Jonas Waeber
Browse files
Catch saxon api exceptions.
parent
4a4252b9
Pipeline
#16178
passed with stages
in 6 minutes and 36 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/KafkaTopology.kt
View file @
e68895e1
...
...
@@ -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
)
)
)
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment