Skip to content
Snippets Groups Projects
Commit 33d7d120 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

Merge branch 'master' of git.se.informatik.uni-kiel.de:she/theodolite into...

Merge branch 'master' of git.se.informatik.uni-kiel.de:she/theodolite into 249-make-analysis-flexible
parents 3da8dc8e eb63b0c8
No related branches found
No related tags found
1 merge request!180Make the analysis of experiments more flexible
This commit is part of merge request !180. Comments created here will be created in the context of that merge request.
...@@ -47,7 +47,7 @@ helm install theodolite . -f preconfigs/one-broker-values.yaml ...@@ -47,7 +47,7 @@ helm install theodolite . -f preconfigs/one-broker-values.yaml
To uninstall/delete the `theodolite` deployment: To uninstall/delete the `theodolite` deployment:
```sh ```sh
helm delete theodolite helm uninstall theodolite
``` ```
This command does not remove the CRDs which are created by this chart. Remove them manually with: This command does not remove the CRDs which are created by this chart. Remove them manually with:
......
...@@ -32,7 +32,7 @@ class PatcherFactory { ...@@ -32,7 +32,7 @@ class PatcherFactory {
k8sResources.filter { it.first == patcherDefinition.resource } k8sResources.filter { it.first == patcherDefinition.resource }
.map { resource -> resource.second } .map { resource -> resource.second }
.firstOrNull() .firstOrNull()
?: throw DeploymentFailedException("Could not find resource ${patcherDefinition.resource}") ?: throw InvalidPatcherConfigurationException("Could not find resource ${patcherDefinition.resource}")
return try { return try {
when (patcherDefinition.type) { when (patcherDefinition.type) {
...@@ -86,10 +86,10 @@ class PatcherFactory { ...@@ -86,10 +86,10 @@ class PatcherFactory {
) )
else -> throw InvalidPatcherConfigurationException("Patcher type ${patcherDefinition.type} not found.") else -> throw InvalidPatcherConfigurationException("Patcher type ${patcherDefinition.type} not found.")
} }
} catch (e: Exception) { } catch (e: NullPointerException) {
throw InvalidPatcherConfigurationException( throw InvalidPatcherConfigurationException(
"Could not create patcher with type ${patcherDefinition.type}" + "Could not create patcher with type ${patcherDefinition.type}" +
" Probably a required patcher argument was not specified." " Probably a required patcher argument was not specified.", e
) )
} }
} }
......
package theodolite.util package theodolite.util
class InvalidPatcherConfigurationException(message: String) : Exception(message) class InvalidPatcherConfigurationException(message: String, e: Exception? = null) : Exception(message, e)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment