Package com.compomics.util.interfaces
Interface Flamable
- All Known Implementing Classes:
FlamableJFrame
public interface Flamable
This interface describes the behaviour for classes that can handle unrecoverable errors and
exceptions, thrown by child threads etc.
The default behaviour of an implementation would be to notify the user of such an event
and try to exit the program reasonably decent.
- Author:
- Lennart Martens
-
Method Summary
Modifier and Type Method Description void
passHotPotato(Throwable aThrowable)
This method takes care of any unrecoverable exception or error, thrown by a child thread.void
passHotPotato(Throwable aThrowable, String aMessage)
This method takes care of any unrecoverable exception or error, thrown by a child thread.
-
Method Details
-
passHotPotato
This method takes care of any unrecoverable exception or error, thrown by a child thread.- Parameters:
aThrowable
- Throwable that represents the unrecoverable error or exception.
-
passHotPotato
This method takes care of any unrecoverable exception or error, thrown by a child thread.- Parameters:
aThrowable
- Throwable that represents the unrecoverable error or exception.aMessage
- String with an extra message to display.
-