Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Merge requests
!179
Something went wrong on our end
make excpetion handling understandable
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
make excpetion handling understandable
wetzel/spesb:247-make-exception-handling-understandable
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Benedikt Wetzel
requested to merge
wetzel/spesb:247-make-exception-handling-understandable
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#247 (closed)
0
0
Merge request reports
Viewing commit
746d87df
Show latest version
2 files
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
746d87df
make excpetion handling understandable
· 746d87df
Benedikt Wetzel
authored
3 years ago
theodolite/src/main/kotlin/theodolite/patcher/PatcherFactory.kt
+
3
−
3
Options
@@ -32,7 +32,7 @@ class PatcherFactory {
k8sResources
.
filter
{
it
.
first
==
patcherDefinition
.
resource
}
.
map
{
resource
->
resource
.
second
}
.
firstOrNull
()
?:
throw
DeploymentFailed
Exception
(
"Could not find resource ${patcherDefinition.resource}"
)
?:
throw
InvalidPatcherConfiguration
Exception
(
"Could not find resource ${patcherDefinition.resource}"
)
return
try
{
when
(
patcherDefinition
.
type
)
{
@@ -86,10 +86,10 @@ class PatcherFactory {
)
else
->
throw
InvalidPatcherConfigurationException
(
"Patcher type ${patcherDefinition.type} not found."
)
}
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
NullPointer
Exception
)
{
throw
InvalidPatcherConfigurationException
(
"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
)
}
}
Loading