info.rolandkrueger.roklib.util
Class DefaultErrorHandler
java.lang.Object
info.rolandkrueger.roklib.util.DefaultErrorHandler
- All Implemented Interfaces:
- ApplicationMessageHandler
public class DefaultErrorHandler
- extends Object
- implements ApplicationMessageHandler
Default implementation for the interface ApplicationMessageHandler
.
Error and information messages are simple printed to the console.
- Author:
- Roland Krueger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultErrorHandler
public DefaultErrorHandler()
reportError
public void reportError(ApplicationError error)
- Description copied from interface:
ApplicationMessageHandler
- Gets called in case of an error.
- Specified by:
reportError
in interface ApplicationMessageHandler
- Parameters:
error
- an ApplicationError
object that summarizes the error- See Also:
ApplicationError
infoMessage
public void infoMessage(String message)
- Description copied from interface:
ApplicationMessageHandler
- Gets called if an information message has to be delivered.
- Specified by:
infoMessage
in interface ApplicationMessageHandler
- Parameters:
message
- the message
Copyright © 2007-2011. All Rights Reserved.