Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HdbTdbArchivingServers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango controls archiving
HdbTdbArchivingServers
Commits
ccb917b3
Commit
ccb917b3
authored
Nov 13, 2015
by
Raphael GIRARDOT
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
15a904ec
No related branches found
Tags
mamboArchivingGUI-2.6.6
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/Common/Archiver/Collector/ArchiverCollector.java
+10
-0
10 additions, 0 deletions
...ain/java/Common/Archiver/Collector/ArchiverCollector.java
src/main/java/HdbArchiver/Collector/HdbCollector.java
+7
-2
7 additions, 2 deletions
src/main/java/HdbArchiver/Collector/HdbCollector.java
with
17 additions
and
2 deletions
src/main/java/Common/Archiver/Collector/ArchiverCollector.java
+
10
−
0
View file @
ccb917b3
...
...
@@ -323,6 +323,16 @@ public abstract class ArchiverCollector implements IErrorListener {
return
result
;
}
/**
* Appends the stack trace of a {@link Throwable} to a {@link StringBuilder}. If the {@link Throwable} is a
* {@link DevFailed}, this method will append the result of {@link DevFailedUtils#toString(DevFailed)} to the
* {@link StringBuilder} instead of the stack trace.
*
* @param builder The {@link StringBuilder} to which to append the stack trace. If <code>null</code>, a new one will
* be created.
* @param error The {@link Throwable} of which the stack trace must be extracted.
* @return A {@link StringBuilder}, never <code>null</code>.
*/
public
static
StringBuilder
appendErrorToStringBuilder
(
StringBuilder
builder
,
Throwable
error
)
{
if
(
builder
==
null
)
{
builder
=
new
StringBuilder
();
...
...
This diff is collapsed.
Click to expand it.
src/main/java/HdbArchiver/Collector/HdbCollector.java
+
7
−
2
View file @
ccb917b3
...
...
@@ -208,7 +208,7 @@ public abstract class HdbCollector extends ArchiverCollector {
}
else
{
addSourceForPolling
(
attributeLightMode
);
}
}
catch
(
Archiving
Exception
e
)
{
}
catch
(
Exception
e
)
{
final
String
message
=
e
.
getMessage
();
if
((
attributeLightMode
!=
null
)
&&
(
message
!=
null
))
{
final
String
name
=
attributeLightMode
.
getAttributeCompleteName
();
...
...
@@ -216,7 +216,12 @@ public abstract class HdbCollector extends ArchiverCollector {
registerErrorMessage
(
name
,
message
);
}
}
throw
e
;
if
(
e
instanceof
ArchivingException
)
{
throw
(
ArchivingException
)
e
;
}
else
{
ArchivingException
exception
=
new
ArchivingException
(
appendErrorToStringBuilder
(
null
,
e
).
toString
());
throw
exception
;
}
}
}
...
...
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