Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
applications:custom_errorhandling [2019/08/06 13:00] admin |
applications:custom_errorhandling [2019/08/06 13:00] admin |
||
---|---|---|---|
Line 2: | Line 2: | ||
~~Title: Custom error handling~~ | ~~Title: Custom error handling~~ | ||
- | The application itself implements the IExceptionListener interface and registers itself as listener: | + | The application (ProjX) implements the **IExceptionListener** interface and registers itself as listener: |
<file java> | <file java> | ||
Line 13: | Line 13: | ||
</file> | </file> | ||
- | All Exceptions will be handled in one method: | + | All Exceptions will be handled in the listener method: |
<file java> | <file java> | ||
Line 20: | Line 20: | ||
</file> | </file> | ||
- | So, it's very easy to change the default error handling. The default error handling shows a popup dialog with the error message and some details (stack trace). | + | So, it's very easy to change the default error handling which shows a popup dialog with the error message and some details (stack trace). |
As example, we'll show the exceptions directly in the work-screens. So, every work-screen should be able to show error messages. To make this possible, we introduce the following interface: | As example, we'll show the exceptions directly in the work-screens. So, every work-screen should be able to show error messages. To make this possible, we introduce the following interface: |