Documentation

Trace: How to Use Vert.x

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
applications:custom_errorhandling [2019/08/06 13:02]
admin
applications:custom_errorhandling [2019/08/06 13:04]
admin
Line 62: Line 62:
 </​file>​ </​file>​
  
-So, our work-screen example contains a new label in the SOUTH area (the bottom of the screen). The label will be hidden initially in **onLoad()**. Our screen is now ready to show error messages, but our application must be changed. To do this, we need a [[vaadin:​customize_application|custom application]].+So, our work-screen example contains a new label in the SOUTH area (the bottom of the screen). The label will be hidden initially in **onLoad()**. ​\\ 
 +Our screen is now ready to show error messages, but our application must be changed. To do this, we need a [[vaadin:​customize_application|custom application]].
  
 Our application contains following code: Our application contains following code:
Line 104: Line 105:
 } }
 </​file>​ </​file>​
-We collect all occurred Exceptions and show one message at the end. We iterate through all opened work-screens and check if the interface is implemented. In our example, every work-screen has to implement the interface IErrorHandler. A better solution would be a custom work-screen base class, e.g. +We collect all occurred Exceptions ​in a list - **liErrors** - and show one message at the end, see **showErrorMessages**\\ 
 +\\  
 +In **showErrorMessages**,​ we iterate through all opened work-screens and check if our interface is implemented. In our example, every work-screen has to implement the interface ​**IErrorHandler**. A better solution would be a custom work-screen base class, e.g. 
  
 <file java> <file java>
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information