You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/06/26 15:44:49 UTC
[09/50] git commit: [flex-falcon] [refs/heads/master] - try to get
type of exception in output
try to get type of exception in output
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/8511fac4
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/8511fac4
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/8511fac4
Branch: refs/heads/master
Commit: 8511fac4e5f0d6d249bb9e177bfec9145fc9ff90
Parents: fae10ea
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 3 21:45:01 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 3 21:45:01 2017 -0700
----------------------------------------------------------------------
.../flex/compiler/problems/InternalCompilerProblem.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/8511fac4/compiler/src/main/java/org/apache/flex/compiler/problems/InternalCompilerProblem.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/problems/InternalCompilerProblem.java b/compiler/src/main/java/org/apache/flex/compiler/problems/InternalCompilerProblem.java
index bd1318b..2bf0ed9 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/problems/InternalCompilerProblem.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/problems/InternalCompilerProblem.java
@@ -32,11 +32,16 @@ public class InternalCompilerProblem extends CompilerProblem {
public InternalCompilerProblem(Exception exception)
{
- this(exception.getStackTrace());
+ this(exception.toString(), exception.getStackTrace());
}
public InternalCompilerProblem(StackTraceElement[] stackTraceElements)
{
+ this("", stackTraceElements);
+ }
+
+ public InternalCompilerProblem(String message, StackTraceElement[] stackTraceElements)
+ {
super();
// Save off the stack trace from the exception/throwable
if(stackTraceElements != null) {
@@ -44,7 +49,7 @@ public class InternalCompilerProblem extends CompilerProblem {
for (StackTraceElement stackTraceElement : stackTraceElements) {
stacktraceBuilder.append(stackTraceElement.toString());
}
- this.stackTrace = stacktraceBuilder.toString();
+ this.stackTrace = message + " " + stacktraceBuilder.toString();
} else {
this.stackTrace = null;
}