info.rolandkrueger.roklib.util
Interface ApplicationMessageHandler

All Known Implementing Classes:
DefaultErrorHandler

public interface ApplicationMessageHandler

This interface provides methods for reporting error and informational messages. Classes that implement ApplicationMessageHandler have to take care that these messages are delivered to the user in a specific way. This may happen via a command console or by writing such messages into a log file.

Author:
Roland Krueger
See Also:
ApplicationError

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.
 

Method Detail

reportError

void reportError(ApplicationError error)
Gets called in case of an error.

Parameters:
error - an ApplicationError object that summarizes the error
See Also:
ApplicationError

infoMessage

void infoMessage(String message)
Gets called if an information message has to be delivered.

Parameters:
message - the message


Copyright © 2007-2011. All Rights Reserved.