Last change
on this file since 199 was
199,
checked in by sherbold, 13 years ago
|
Major change to the Console provided by this library. The interface de.ugoe.cs.console.ConsoleObserver? is deprecated and split into the five interface IOutputListener, IErrorListener, ITraceListener, IExceptionListener, and ICommandListener.
The rational for this change is to provide the possibility to listen to only parts of what is send to the console to provide better capabilities for target-oriented handling of the different streams, e.g., for exception logging.
|
-
Property svn:mime-type set to
text/plain
|
File size:
470 bytes
|
Line | |
---|
1 | package de.ugoe.cs.util.console.listener;
|
---|
2 |
|
---|
3 | import de.ugoe.cs.util.console.Console;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * <p>
|
---|
7 | * Received all exceptions passed to the {@link Console} for logging.
|
---|
8 | * </p>
|
---|
9 | *
|
---|
10 | * @author Steffen Herbold
|
---|
11 | * @version 1.0
|
---|
12 | */
|
---|
13 | public interface IExceptionListener {
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * <p>
|
---|
17 | * Logs an exception passed to the {@link Console}.
|
---|
18 | * </p>
|
---|
19 | *
|
---|
20 | * @param e
|
---|
21 | * Exception that is logged
|
---|
22 | */
|
---|
23 | public void printStacktrace(Exception e);
|
---|
24 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.