gabrial11392 / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Adding exceptions on validation of ActionValidator #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the exception thrown when a session in invalid is a hard coded 
string. That should 
change by throwing the right exceptions.

There is two case : 
1- A clientSession Id is invalid
2- Business logic validating the user.

We could make two named exception for them
InvalidSessionExeption (Already exist) and InvalidUserException(?)

Then those exception will be catch, throwed back to the client and catch by a 
callback extending 
our Asyncallback and catching our exception. I think there's already something 
existing for this : 
DisplayCallback, but was part of the old Dispatch, you seem to have removed it. 
We could reuse it 
and  extend it to use our Exceptions.

What do you think about that ?

Original issue reported on code.google.com by goudreau...@gmail.com on 23 Apr 2010 at 1:34

GoogleCodeExporter commented 9 years ago
Note: SessionValidator and related classes are now called ActionValidator.

Original comment by philippe.beaudoin on 30 Apr 2010 at 5:33

GoogleCodeExporter commented 9 years ago

Original comment by goudreau...@gmail.com on 14 May 2010 at 3:36

GoogleCodeExporter commented 9 years ago

Original comment by goudreau...@gmail.com on 14 May 2010 at 4:34