org.jtheque.core.managers.error
Class ErrorManager

java.lang.Object
  extended by org.jtheque.core.managers.error.ErrorManager
All Implemented Interfaces:
IErrorManager, IManager

public final class ErrorManager
extends java.lang.Object
implements IErrorManager, IManager

An error manager implementation.

Author:
Baptiste Wicht

Constructor Summary
ErrorManager()
           
 
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 close()
          Close the manager.
 void displayErrors()
          Display the errors.
 java.util.List<JThequeError> getErrors()
          Return all the errors.
 void init()
          Init the manager.
 void preInit()
          Pre-init the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorManager

public ErrorManager()
Method Detail

preInit

public void preInit()
Description copied from interface: IManager
Pre-init the manager. This operation is called before modules preplug.

Specified by:
preInit in interface IManager

init

public void init()
          throws ManagerException
Description copied from interface: IManager
Init the manager. This operation is called after modules preplug but before module plug.

Specified by:
init in interface IManager
Throws:
ManagerException - If an error occurs during the init process.

close

public void close()
           throws ManagerException
Description copied from interface: IManager
Close the manager.

Specified by:
close in interface IManager
Throws:
ManagerException - If an error occurs during the close process.

addError

public void addError(JThequeError error)
Description copied from interface: IErrorManager
Add an error.

Specified by:
addError in interface IErrorManager
Parameters:
error - A new error.

getErrors

public java.util.List<JThequeError> getErrors()
Description copied from interface: IErrorManager
Return all the errors.

Specified by:
getErrors in interface IErrorManager
Returns:
A List containing all the errors.

addStartupError

public void addStartupError(JThequeError error)
Description copied from interface: IErrorManager
Add a startup error.

Specified by:
addStartupError in interface IErrorManager
Parameters:
error - An error who occurred at the startup of the application.

displayErrors

public void displayErrors()
Description copied from interface: IErrorManager
Display the errors.

Specified by:
displayErrors in interface IErrorManager

addInternationalizedError

public void addInternationalizedError(java.lang.String messageKey)
Description copied from interface: IErrorManager
Add an internationalizable error.

Specified by:
addInternationalizedError in interface IErrorManager
Parameters:
messageKey - the internationalized key.

addInternationalizedError

public void addInternationalizedError(java.lang.String messageKey,
                                      java.lang.Object... messageReplaces)
Description copied from interface: IErrorManager
Add an internationalizable error.

Specified by:
addInternationalizedError in interface IErrorManager
Parameters:
messageKey - the internationalized key.
messageReplaces - the object to use in replaces.


Copyright © 2009 JTheque. All Rights Reserved.