We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8129e58 commit 46801b1Copy full SHA for 46801b1
kotlin-wot/src/main/kotlin/DefaultWot.kt
@@ -47,7 +47,7 @@ class DefaultWot(private val servient: Servient) : Wot {
47
return if (servient.addThing(exposedThing)) {
48
exposedThing
49
} else {
50
- exposedThing
+ throw WotException("Thing already exists: " + thingDescription.id)
51
}
52
53
0 commit comments