info.rolandkrueger.roklib.util
Class DefaultErrorHandler

java.lang.Object
  extended by 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

Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
 void infoMessage(String message)
          Gets called if an information message has to be delivered.
 void reportError(ApplicationError error)
          Gets called in case of an error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

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.