Hello everyone, Just before I decided to upload the program( URLybird 1.3.3 ), I found it would be better to have multi-Data object instead of a singleton Data
Then when a client calls either search() or book() method, the program will throw a new thread --SearchTask or BookTask(). Each task has it own Data. Therefore, the actual work is implemented inside of run() method in the thread.
My question is how can I handle exception that is thrown inside run() since run() does now throw any exception at all. If I use singleton Data class, I do not need to worry about the problem, however, each thread has to share the Data ---which is not the case the project should be... I suppose. Thank a million for your help.