Re: Handling exceptions in SwingWorker
- From: Michael Rauscher <michlmann@xxxxxx>
- Date: Tue, 27 Feb 2007 06:17:43 +0100
Efi Merdler wrote:
Hello,
I didn't find any information on this subject.
Let's assume that I have an exception while running my background
method, what are my available options :
1. Handle the exception from within the background method, sometimes
not possible especially if it requires handling GUI.
2. Create a getter method called getException() that returns the
exception if one exists and null if none exists.
OK, I'd like to add some possibilities:
3. Use a global 'ErrorManager'
4. Create an 'ExceptionListener' and a method addExceptionListener
5. Use a combination of 3 and 4
Bye
Michael
.
- Follow-Ups:
- Re: Handling exceptions in SwingWorker
- From: Rogan Dawes
- Re: Handling exceptions in SwingWorker
- References:
- Handling exceptions in SwingWorker
- From: Efi Merdler
- Handling exceptions in SwingWorker
- Prev by Date: Re: Ok, so where's the FM?
- Next by Date: Re: JList as Jtable Render and editor
- Previous by thread: Handling exceptions in SwingWorker
- Next by thread: Re: Handling exceptions in SwingWorker
- Index(es):