|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ErrorHandler
Basic interface for conversion error handling.
If an application needs to implement customized error handling, it must
implement this interface and then register an instance with the conversion
driver using the setErrorHandler method. The driver will then report all errors and
warnings through this interface.
| Method Summary | |
|---|---|
void |
error(Exception exception)
Receive notification of an error. |
void |
warning(Exception exception)
Receive notification of a warning. |
| Method Detail |
|---|
void error(Exception exception)
throws Exception
The conversion driver will use this method to report conditions that are considered fatal errors. The default behaviour is to throw an exception. An application may handle these conditions in a different way, however the conversion process is aborted once this method has been invoked.
exception - the error information, encapsulated in an exception
Exception - if an error occurs
void warning(Exception exception)
throws Exception
The conversion driver will use this method to report conditions that are not considered fatal errors. The default behaviour is to print a warning message to the standard error output stream.
exception - the warning information, encapsulated in an exception
Exception - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||