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
libraries
Normalizer Service Configuration
Commits
8b891d59
Commit
8b891d59
authored
Jan 21, 2021
by
Jonas Waeber
Browse files
Improve error logging
parent
971cb67a
Pipeline
#20495
passed with stage
in 2 minutes and 3 seconds
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
src/main/kotlin/ch/memobase/rdf/RicoResource.kt
View file @
8b891d59
...
...
@@ -40,7 +40,12 @@ class RicoResource(val resource: Resource) {
return
try
{
resource
.
getProperty
(
RDF
.
type
).
resource
}
catch
(
ex
:
IllegalStateException
)
{
val
message
=
"Resource without a ricoType: $resource."
+
ex
.
localizedMessage
val
id
=
if
(
resource
.
isAnon
)
{
resource
.
id
.
labelString
}
else
{
resource
.
uri
}
val
message
=
"Resource without a rdf:type: $id"
+
ex
.
localizedMessage
log
.
error
(
message
)
throw
InvalidInputException
(
message
)
}
...
...
Write
Preview
Markdown
is supported
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