Changeset 210 for trunk/JavaHelperLib/src/de
- Timestamp:
- 09/28/11 03:10:30 (13 years ago)
- Location:
- trunk/JavaHelperLib/src/de/ugoe/cs/util/console
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/Console.java
r201 r210 335 335 * exception whose stack trace is to be printed 336 336 */ 337 public static void printStacktrace(Exception e) {337 public static void logException(Exception e) { 338 338 if (theInstance == null) { 339 339 getInstance(); 340 340 } 341 341 for (IExceptionListener observer : theInstance.exceptionListener) { 342 observer. printStacktrace(e);342 observer.logException(e); 343 343 } 344 344 } -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/TextConsole.java
r201 r210 67 67 * </p> 68 68 * 69 * @see ConsoleObserver# printStacktrace(Exception)69 * @see ConsoleObserver#logException(Exception) 70 70 */ 71 71 @Override 72 public void printStacktrace(Exception e) {73 e.printStackTrace();72 public void logException(Exception e) { 73 System.err.println(e.getMessage()); 74 74 } 75 75 -
trunk/JavaHelperLib/src/de/ugoe/cs/util/console/listener/IExceptionListener.java
r199 r210 21 21 * Exception that is logged 22 22 */ 23 public void printStacktrace(Exception e);23 public void logException(Exception e); 24 24 }
Note: See TracChangeset
for help on using the changeset viewer.