| Author |
URLyBird: about how to deal with the situation book a record(booked)
|
Ronggen Liu
Ranch Hand
Joined: Jul 29, 2007
Posts: 40
|
|
Hi guys, how do you handle the scenario when the user book a record, wihich had been booked by the other user. my solution is to define a checked exception BookFailedException, and throw it in business method bookRecord. and handle this in client by getting the root cause of the excepiton, and raise a alert window to show the right information to the user. what do you guys think about it? Thank you! Ronggen
|
SCJP 1.4,<br />SCJD Java 2,<br />...
|
 |
Chih-Wei Lee
Ranch Hand
Joined: Feb 20, 2008
Posts: 129
|
|
Hi: I have the similar solution for this issue. I also define a custom exception to throw if the scenario occurs but I throw this exception in my database implementation.
|
SCEA, SCJD, SCDJWS, SCWCD, SCJP
|
 |
 |
|
|
subject: URLyBird: about how to deal with the situation book a record(booked)
|
|
|