Lines 1065-1071
Link Here
|
1065 |
if (encoding == null) { |
1065 |
if (encoding == null) { |
1066 |
encoding = System.getProperty("file.encoding"); //$NON-NLS-1$ |
1066 |
encoding = System.getProperty("file.encoding"); //$NON-NLS-1$ |
1067 |
} |
1067 |
} |
1068 |
String[] arguments = new String[]{ fileName, encoding, }; |
1068 |
String[] arguments = new String[]{ fileName, encoding }; |
1069 |
this.handle( |
1069 |
this.handle( |
1070 |
IProblem.InvalidEncoding, |
1070 |
IProblem.InvalidEncoding, |
1071 |
arguments, |
1071 |
arguments, |
Lines 1078-1090
Link Here
|
1078 |
PrintWriter writer = new PrintWriter(stringWriter); |
1078 |
PrintWriter writer = new PrintWriter(stringWriter); |
1079 |
if (verbose) { |
1079 |
if (verbose) { |
1080 |
abortException.exception.printStackTrace(writer); |
1080 |
abortException.exception.printStackTrace(writer); |
|
|
1081 |
System.err.println(stringWriter.toString()); |
1082 |
stringWriter = new StringWriter(); |
1083 |
writer = new PrintWriter(stringWriter); |
1081 |
} else { |
1084 |
} else { |
1082 |
writer.print(abortException.exception.getClass().getName()); |
1085 |
writer.print(abortException.exception.getClass().getName()); |
1083 |
writer.print(':'); |
1086 |
writer.print(':'); |
1084 |
writer.print(abortException.exception.getMessage()); |
1087 |
writer.print(abortException.exception.getMessage()); |
1085 |
} |
1088 |
} |
1086 |
String exceptionTrace = stringWriter.toString(); |
1089 |
String exceptionTrace = stringWriter.toString(); |
1087 |
String[] arguments = new String[]{ fileName, exceptionTrace, }; |
1090 |
String[] arguments = new String[]{ fileName, exceptionTrace }; |
1088 |
this.handle( |
1091 |
this.handle( |
1089 |
IProblem.CannotReadSource, |
1092 |
IProblem.CannotReadSource, |
1090 |
arguments, |
1093 |
arguments, |