Documentation

Trace:

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
jvx:client:gui:exceptionhandling [2020/06/08 14:49]
cduncan
jvx:client:gui:exceptionhandling [2020/07/08 17:36] (current)
cduncan articles
Line 58: Line 58:
 will do the job. Simply override the method to do what you want or register your own listener and remove the application and exception listener. will do the job. Simply override the method to do what you want or register your own listener and remove the application and exception listener.
  
-The default implementation makes it super easy to show exceptions without additional code. Suppose we have following action:+The default implementation makes it super easy to show exceptions without additional code. Suppose we have the following action:
  
 <file java> <file java>
Line 72: Line 72:
 The callAction method will throw throwable because it's a remote procedure call and all remote procedure calls will throw throwable instead of an exception. JVx doesn'​t define custom exceptions because Java has enough, and it wasn't necessary to wrap exceptions for remote calls. The application is able to define custom exceptions in remote procedure calls, but JVx doesn'​t wrap exceptions. It's nice for an application developer to get the thrown exception instead of unwrapping a caught exception to get the original exception. The callAction method will throw throwable because it's a remote procedure call and all remote procedure calls will throw throwable instead of an exception. JVx doesn'​t define custom exceptions because Java has enough, and it wasn't necessary to wrap exceptions for remote calls. The application is able to define custom exceptions in remote procedure calls, but JVx doesn'​t wrap exceptions. It's nice for an application developer to get the thrown exception instead of unwrapping a caught exception to get the original exception.
  
-To make our action working, we could do following:+To make our action working, we could do the following:
  
 <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