|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ErrorHandlingStrategy
This is an interface for an error handling strategy.
Classes that let clients register a strategy should call it in this way:
try {
...
} catch (FileSystemException e) {
strat.handleFileSystemException(e, la);
} catch (RuntimeException e) {
strat.handleRuntimeException(e, la);
}
| Method Summary | |
|---|---|
void |
handleException(Exception e,
LogAdapter la)
Handle an Exception. |
void |
handleFileSystemException(FileSystemException e,
LogAdapter la)
Handle a FileSystemException. |
void |
handleRuntimeException(RuntimeException e,
LogAdapter la)
Handle a RuntimeException. |
| Method Detail |
|---|
void handleFileSystemException(FileSystemException e,
LogAdapter la)
throws FileSystemException
FileSystemException.
e - The exception.la - The file system's log adapter.
FileSystemException - The implementation may choose to rethrow the
handled exception.
void handleRuntimeException(RuntimeException e,
LogAdapter la)
throws RuntimeException
RuntimeException.
e - The exception.la - The file system's log adapter.
RuntimeException - The implementation may choose to rethrow the
handled exception.
void handleException(Exception e,
LogAdapter la)
throws FileSystemException
Exception. If the exception should be rethrown, wrap it
in a FileSystemException.
e - The exception.la - The file system's log adapter.
FileSystemException - The implementation may choose to rethrow the
handled exception wrapped in a FileSystemException.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||