Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
646aa3a7
Commit
646aa3a7
authored
16 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
change: add catch clause and TODO for having a cleaner interface for self-test failures
SVN: 7816
parent
07d62afa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datamover/source/java/ch/systemsx/cisd/datamover/SelfTest.java
+10
-2
10 additions, 2 deletions
...over/source/java/ch/systemsx/cisd/datamover/SelfTest.java
with
10 additions
and
2 deletions
datamover/source/java/ch/systemsx/cisd/datamover/SelfTest.java
+
10
−
2
View file @
646aa3a7
...
@@ -64,12 +64,20 @@ public class SelfTest
...
@@ -64,12 +64,20 @@ public class SelfTest
try
try
{
{
selfTestable
.
check
();
selfTestable
.
check
();
}
catch
(
EnvironmentFailureException
ex
)
{
notificationLog
.
error
(
"Self-test failed for self testable '"
+
selfTestable
+
"'. This self-testable is remote and the resource may become "
+
"available later, thus continuing anyway."
,
ex
);
// TODO 2008-08-12, Bernd Rinn: ensure we never throw a
// ConfigurationFailureException in any SelfTestable if we are not sure that it
// is a configuration problem rather than a problem with the environment. Then,
// when this is done, remove this catch clause.
}
catch
(
ConfigurationFailureException
ex
)
}
catch
(
ConfigurationFailureException
ex
)
{
{
notificationLog
.
error
(
"Self-test failed for self testable '"
+
selfTestable
notificationLog
.
error
(
"Self-test failed for self testable '"
+
selfTestable
+
"'. This self-testable is remote and the resource may become "
+
"'. This self-testable is remote and the resource may become "
+
"available later, thus continuing anyway [error message: "
+
"available later, thus continuing anyway."
,
ex
);
+
ex
.
getMessage
()
+
"."
);
}
}
}
else
}
else
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment