Coverage Report - org.jtheque.core.managers.error.IErrorManager
 
Classes in this File Line Coverage Branch Coverage Complexity
IErrorManager
N/A
N/A
1
 
 1  
 package org.jtheque.core.managers.error;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
  * GNU General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU General Public License
 16  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 /**
 20  
  * An error manager. It seems a manager who enable module to display some errors in a simple way.
 21  
  *
 22  
  * @author Baptiste Wicht
 23  
  */
 24  
 public interface IErrorManager {
 25  
     /**
 26  
      * Add an error.
 27  
      *
 28  
      * @param error A new error.
 29  
      */
 30  
     void addError(JThequeError error);
 31  
 
 32  
     /**
 33  
      * Add a startup error.
 34  
      *
 35  
      * @param error An error who occurred at the startup of the application.
 36  
      */
 37  
     void addStartupError(JThequeError error);
 38  
 
 39  
     /**
 40  
      * Display the errors.
 41  
      */
 42  
     void displayErrors();
 43  
 
 44  
     /**
 45  
      * Add an internationalizable error.
 46  
      *
 47  
      * @param messageKey the internationalized key.
 48  
      */
 49  
     void addInternationalizedError(String messageKey);
 50  
 
 51  
     /**
 52  
      * Add an internationalizable error.
 53  
      *
 54  
      * @param messageKey      the internationalized key.
 55  
      * @param messageReplaces the object to use in replaces.
 56  
      */
 57  
     void addInternationalizedError(String messageKey, Object... messageReplaces);
 58  
 }