Package de.richtercloud.message.handler
Class DefaultIssueHandler
- java.lang.Object
-
- de.richtercloud.message.handler.DefaultIssueHandler
-
- All Implemented Interfaces:
BugHandler,IssueHandler,MessageHandler
public class DefaultIssueHandler extends Object implements IssueHandler
- Author:
- richter
-
-
Constructor Summary
Constructors Constructor Description DefaultIssueHandler(MessageHandler messageHandler, BugHandler bugHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Message message)Handles the message which needs to be defined by the implementation.voidhandleUnexpectedException(ExceptionMessage message)Handles an unexpected exception message which needs to be defined by the implementation.voidshutdown()Closes eventually opened resources (network connection for upload of exception stacktraces, etc.).
-
-
-
Constructor Detail
-
DefaultIssueHandler
public DefaultIssueHandler(MessageHandler messageHandler, BugHandler bugHandler)
-
-
Method Detail
-
handle
public void handle(Message message)
Description copied from interface:MessageHandlerHandles the message which needs to be defined by the implementation.- Specified by:
handlein interfaceMessageHandler- Parameters:
message- the message to handle
-
handleUnexpectedException
public void handleUnexpectedException(ExceptionMessage message)
Description copied from interface:BugHandlerHandles an unexpected exception message which needs to be defined by the implementation. This is different fromBugHandler.handleUnexpectedException(de.richtercloud.message.handler.ExceptionMessage)in the way that it should encourage the user to file a bug or confirm that the bug is automatically filed (again dependening on the implementation).- Specified by:
handleUnexpectedExceptionin interfaceBugHandler- Parameters:
message- the message to handle
-
shutdown
public void shutdown()
Description copied from interface:BugHandlerCloses eventually opened resources (network connection for upload of exception stacktraces, etc.).- Specified by:
shutdownin interfaceBugHandler
-
-