org.jtheque.core.managers.error
Interface IErrorManager

All Known Implementing Classes:
ErrorManager

public interface IErrorManager

An error manager. It seems a manager who enable module to display some errors in a simple way.

Author:
Baptiste Wicht

Method Summary
 void addError(JThequeError error)
          Add an error.
 void addInternationalizedError(java.lang.String messageKey)
          Add an internationalizable error.
 void addInternationalizedError(java.lang.String messageKey, java.lang.Object... messageReplaces)
          Add an internationalizable error.
 void addStartupError(JThequeError error)
          Add a startup error.
 void displayErrors()
          Display the errors.
 java.util.List<JThequeError> getErrors()
          Return all the errors.
 

Method Detail

addError

void addError(JThequeError error)
Add an error.

Parameters:
error - A new error.

getErrors

java.util.List<JThequeError> getErrors()
Return all the errors.

Returns:
A List containing all the errors.

addStartupError

void addStartupError(JThequeError error)
Add a startup error.

Parameters:
error - An error who occurred at the startup of the application.

displayErrors

void displayErrors()
Display the errors.


addInternationalizedError

void addInternationalizedError(java.lang.String messageKey)
Add an internationalizable error.

Parameters:
messageKey - the internationalized key.

addInternationalizedError

void addInternationalizedError(java.lang.String messageKey,
                               java.lang.Object... messageReplaces)
Add an internationalizable error.

Parameters:
messageKey - the internationalized key.
messageReplaces - the object to use in replaces.


Copyright © 2009 JTheque. All Rights Reserved.